micahgodbolt / fluid-react-starter

MIT License
3 stars 2 forks source link

Queries only update when fluid data changes #22

Closed micahgodbolt closed 3 years ago

micahgodbolt commented 3 years ago

Say you have a getItemById query, and you have a UI that lets you change which "id" is selected. If this selectedID is only local state (picking which node to edit) then the getItemById query will continue to return the same original item

micahgodbolt commented 3 years ago

aaaaaaaaaaaaaand, i realize that this doesn't affect us now that we are using a single store. Queries pull a piece off of existing state, each query isn't a stateful element of it's own