Replies: 1 comment 3 replies
-
I haven't actually tried investigating, but my understanding is that only React state is |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While trying to upgrade to React Router v7 I've started seeing some weird behavior in my tests (using createBrowserRouter).
I'm using loaders to initiate calls to queries as early as possible, as shown here:
TkDodo/blog-comments#84 (reply in thread)
I'm also using the loaders to dispatch some actions as early as possible, but I'm wondering if the conversion to "startTransition" under the hood in React Router is causing some timing issues for me.
Maybe the store isn't updated yet in some cases when the loader is triggered upon navigation?
I'm testing if using flushSync instead will solve it, but that feels like a potential de-optimization compared to v6.
remix-run/react-router#12855 (comment)
Beta Was this translation helpful? Give feedback.
All reactions