M Zeeshan
M Zeeshan7mo ago

is there a built-in mechanism for

is there a built-in mechanism for loading and error indicators like isLoading and isError in convex? if not, how can i implement them effectively?
5 Replies
Hmza
Hmza7mo ago
a little trick i do (i don't know if this is valid or not) if you are querying data. instead of using query in convex backend i write mutation functions even if i just want to get the data back you can conditionally called mutation and give params after a check if whatever loaded or not in page. for query you need to provide params with the hook call. if you asked something else, then i'm sorry if this is what you want then you're welcome lol
lee
lee7mo ago
npm
convex-helpers
A collection of useful code to complement the official convex package.. Latest version: 0.1.49, last published: 3 days ago. Start using convex-helpers in your project by running npm i convex-helpers. There are no other projects in the npm registry using convex-helpers.
M Zeeshan
M ZeeshanOP7mo ago
i just love it but y it is in helpers
jamwt
jamwt7mo ago
convex is a bit anti "batteries included" philosophically ( see https://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html ) . we want the few things we ship in the core libraries to be simple and "forever", and then we want to get good at augmenting them with libraries and components and all sorts of other great stuff that are more fluid and more specific. this is closer to the "JavaScript (npm)" or "rust (cargo)" philosophy than the python one. so right now, there is a lot of good stuff in convex-helpers
Python Software Foundation Blog
Amber Brown: Batteries Included, But They're Leaking
Amber Brown of the Twisted project shared her criticisms of the Python standard library. This proved to be the day’s most controversial ta...
From An unknown user
From An unknown user
jamwt
jamwt7mo ago
good quote from that article:
According to Brown, “the standard library is where code sometimes goes to die,” because it is difficult and slow to contribute code there.
yep, :this:

Did you find this page helpful?