davidknp
davidknp
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
No description
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
@bigmistqke This works but it returns an array. How would you return an object of Record<EntityId, Resource> instead?
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
Thank you, I'll try that
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
It's something like a code editor so rather the first. There are some RPC calls when interacting with persistent state (e.g Filesystem) but other than that there is a lot of client side stuff going on.
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
No description
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
I'm familiar with tanstack query and I understand this would be a simple solution for the example I have shown however the actual app is highly interactive meaning a lot of client side state, actions (incl. client side mutations) and derivations the actual data fetching part plays a very small role.
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
I'm not sure tanstack query would help much in this situation since it would only be a replacement for createResource I would still have to dynamically create new queries in the same way, right?
27 replies
SSolidJS
Created by davidknp on 3/3/2024 in #support
Dynamically creating resources based on reactive state in Solid Store
Good suggestion, in this case however I'm working on a highly interactive app where state is needed all over the place which is why I would prefer to keep this state global and colocate it with actions (which I have omitted from this minimal repro) as much as possible.
27 replies