-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Experimental] Flip startTransition and isPending #7838
Conversation
Is this released anywhere yet? I know it's an unstable API, so things can change whenever they want. But just so folks using this don't run into trouble. |
It's already released as latest experimental version. The last version that works with |
This is not yet part of React router... @phaux what kind of brunch is that? it is not in dev or v6 yet... Just I'm a bit confused... Is that brunch as Experimental even working looks like has a lot of issues... I used Link extension so far...
|
There are even more changes unstable_ prefixes got removed |
@RichardLindhout What I know transition is still |
In the experimental release I'm importing straight from React.useTransition but I'm using |
Are you using typescript and last Types? I remember i was updating types month ago for this... But maybe I should check correctly again :P But good to know the import is directly available... |
Updated React again. |
Types were not up to date yet I think. Btw React 18 is now released so hope react-router will update soon :) |
Can we bump this to the |
Updated and now it warns about not using |
Did you use |
Yes, like that: act(() => {
- ReactDOM.render(
+ ReactDOM.createRoot(node).render(
<Router initialEntries={['/home']}>
<Routes>
<Route path="home" element={<Home />} />
<Route path="about" element={<About />} />
</Routes>
</Router>,
- node,
);
}; And I get error:
|
facebook/react#20976