micahgodbolt / fluid-react-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Queries only update when fluid data changes

micahgodbolt opened this issue · comments

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

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