[Experimental] Flip startTransition and isPending#7838
[Experimental] Flip startTransition and isPending#7838phaux wants to merge 5 commits intoremix-run:dev-experimentalfrom phaux:patch-1
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