Dima Utkin
CCConvex Community
•Created by FleetAdmiralJakob 🗕 🗗 🗙 on 4/10/2024 in #support-community
Feature Request: API for checking if query/mutation/action is loading
and there's a good post on Convex Stack about another classic issue of pure reactive systems https://stack.convex.dev/help-my-app-is-overreacting
so, wrappers are very much needed sometimes
139 replies
CCConvex Community
•Created by FleetAdmiralJakob 🗕 🗗 🗙 on 4/10/2024 in #support-community
Feature Request: API for checking if query/mutation/action is loading
default
useQuery
from convex/react
won't be any of help in this case 🤷♂️139 replies
CCConvex Community
•Created by FleetAdmiralJakob 🗕 🗗 🗙 on 4/10/2024 in #support-community
Feature Request: API for checking if query/mutation/action is loading
true, the nature of the website\app is very important here. but i can hardly imagine creating a nice UX just for basic "navigate back to the previous page" experience, without utilizing some sort of a client-side cache(if we're talking SPA)
139 replies
CCConvex Community
•Created by FleetAdmiralJakob 🗕 🗗 🗙 on 4/10/2024 in #support-community
Feature Request: API for checking if query/mutation/action is loading
@FleetAdmiralJakob 🗕 🗗 🗙 i'm pretty sure that having a (semi-)polished experience for a production app would require you to have tanstack-query as a wrapper for ConvexHttpClient or ConvexReactClient, imho, for majority of your queries
139 replies
CCConvex Community
•Created by james on 2/6/2024 in #announcements
2024 Q1 plans
or maybe a new kind of table and or field could be introduced, like generated columns in classical rdbms, but with a wider idea. like these special tables\fields are only allowed to be the sink of some triggers, they cannot have triggers defined on them
32 replies
CCConvex Community
•Created by james on 2/6/2024 in #announcements
2024 Q1 plans
I guess, if trigger declarations are tied to schema table(and\or field) declaration, so they could be statically analyzed and not created imperatively, there's a good chance to detect those potential cycles early, maybe even with some crazy typescript magic 🤔
32 replies
CCConvex Community
•Created by james on 2/6/2024 in #announcements
2024 Q1 plans
@james any chance we'll see add\update\delete triggers in the upcoming months?
And another one, Convex Ents vs Convex Components vs plain Convex schema and handcrafted functions — it there a vision about different approaches? will those converge to some stable\recommended\approved\blessed way to utilize the Convex platform?
32 replies
CCConvex Community
•Created by Var& on 11/30/2023 in #support-community
Get the count of the query without using collect()
Anything that remotely resembles CQRS pattern. When you have a flow of commands and events that trigger each other. Imagine you have a command like "create patient", after it's executed and an event "patient created" was emitted and persisted into a db, you might want to execute multiple different commands related to that event, establishing some defaults, setting some cron jobs, etc. You definitely can do that programmatically, but alternatively, db can become a source of truth and context for all the related actions you want to execute, following your app's business logic
22 replies
CCConvex Community
•Created by Var& on 11/30/2023 in #support-community
Get the count of the query without using collect()
I'm really interested in a normal db-driven triggers, imho, they're the best feature of firestore, basically for any event-driven flows it's a must. I'll wait, I'm patient and i know how hard these things are to implement 🙂
22 replies
CCConvex Community
•Created by Var& on 11/30/2023 in #support-community
Get the count of the query without using collect()
i was hoping to see triggers in Convex(which could be, theoretically, used for these kind of problems), and was promised they're coming, but it seems like it's not a high priority
22 replies
CCConvex Community
•Created by Var& on 11/30/2023 in #support-community
Get the count of the query without using collect()
@ian firestore got count/sum/avg on client not that long ago, and it doesn't fetch all the document, of course 🙂
22 replies
CCConvex Community
•Created by TripleSpeeder on 10/20/2023 in #support-community
Is there a way to get the object type from a db.get result?
maybe have a look at
normalizeId
15 replies
CCConvex Community
•Created by TripleSpeeder on 10/20/2023 in #support-community
Is there a way to get the object type from a db.get result?
15 replies
CCConvex Community
•Created by TripleSpeeder on 10/20/2023 in #support-community
Is there a way to get the object type from a db.get result?
you can make a union of v.object and add a record
type
field, next to id
, that would be more explicit, imho15 replies
CCConvex Community
•Created by Dima Utkin on 7/21/2023 in #general
pagination filtering
Thanks @ian for a deep dive!
Yes, you can hack around and make things work with virtually any tool at hand. But in my case, this is just me reflecting on a real world scenarios, trying to give you folks more ideas for Convex 1.0 and beyound 🙂
Planning everything upfront works, even if it requires some hacking, but things might fall apart with a new set of requirements... and those are coming... always 😅
And those changes usually require two things: migrations and\or more powerful and dynamic queries.
Anyway! these are just my thoughts to ignite your fight against SQL 😁
11 replies
CCConvex Community
•Created by Dima Utkin on 7/21/2023 in #general
pagination filtering
@james that's awesome ❤️
11 replies
CCConvex Community
•Created by Dima Utkin on 7/21/2023 in #general
pagination filtering
and i think that's beautiful 😻
11 replies
CCConvex Community
•Created by Dima Utkin on 7/21/2023 in #general
pagination filtering
yes, there're options to solve this in some way or another, but that's an opposite of what I think Convex is about 🙂
you wrote about this here https://stack.convex.dev/convex-vs-firebase#end-to-end-correctness-philosophy
"We don't just want it to be possible to build a correct app but we want it to be impossible not to build your app correctly. Developers should fall into the pit of success."
11 replies
CCConvex Community
•Created by Dima Utkin on 7/21/2023 in #general
pagination filtering
@Lee basically, everything that requires a so-called "computed" field data.
It seems like the source of this search for hacks lies in the lack of trigger in Convex. For me, triggers were\are the best feature of Firestore (or even the whole Firebase).
Imagine a healthcare app with patients submitting their vitals. Agents on the "frontline" should be able to see and react to the most urgent cases like, SpO2 falling below 90% and heart rate > 100bpm or smth like this.
Ideally, we'd want to trigger an alert in this case. But we'd also would like to bump that incident to the top on the agent's dashboard(that's a dynamic priority), but also, we'd like to filter out "normal" cases, or at least, show them somewhere below "urgent" cases.
And this is just the beginning of the dynamism required for query like this. Each user might have their custom "alert" thresholds for these cases... and so on and so on.
this is a very high-level scenario inspired by a real app 🙂
11 replies
CCConvex Community
•Created by Dima Utkin on 7/21/2023 in #general
pagination filtering
yes, i know that you can do simple filtering with .paginate() 🙂
11 replies