S
SolidJS4mo ago
Andre

How to handle repeatedly updating a value in a large Store

Here is an example: https://playground.solidjs.com/anonymous/75bea6b0-4eb0-41d0-8f62-6117c969801d I feel like this is not the best approach for this case since searching the array for the ID each time the user types something would be inefficient if the store was large enough. Is there something recomended for this? Maybe some way to pass store setters directly to a component? I know there's a behavior where you can create a store directly from an item of another store, and updates to that item reflect back on the original store (https://playground.solidjs.com/anonymous/1a8fba4f-76c8-4bd6-b8e9-ffaae1922e62). Is this encouraged?
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server