using `select` as an `onSuccess` replacement
in reference to this article
https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose#react-query-v5 (great article btw)
the recommend way to sync state is to use useEffect in use land
now according the docs, select reruns when the
data changes assuming data means cached data this means, I ca write something like this
is there any drawbacks to this approach?2 Replies
magic-beige•11mo ago
Select runs on every render
And the recommended way to sync state is to not do it at all.
quickest-silverOP•11mo ago
thanks