Queries only update when fluid data changes
micahgodbolt opened this issue · comments
Micah Godbolt commented
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
Micah Godbolt commented
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