react-rails icon indicating copy to clipboard operation
react-rails copied to clipboard

How to enable concurrent mode and createRoot?

Open joshunger opened this issue 3 years ago • 2 comments

Can you please provide the steps to enable concurrent mode and createRoot?

https://reactjs.org/docs/concurrent-mode-reference.html

To enable concurrent mode you typically do this -

ReactDOM.createRoot(rootNode).render(<App />);

How do I do this with react-rails?

Thank you!

joshunger avatar Jun 30 '21 21:06 joshunger

Any updates?

sagar-ranglani avatar Jun 21 '22 09:06 sagar-ranglani

This may help #1194

maedi avatar Aug 15 '22 08:08 maedi

@joshunger, Were you able to resolve the issue?

alkesh26 avatar Nov 10 '22 18:11 alkesh26

@alkesh26 nope

joshunger avatar Nov 16 '22 17:11 joshunger

Is there some alternative to use the createRoot manually? Because I noticed without this, the cleanup logic does not work anymore with React 18 and the latest version of react-rails (currently: 2.6.2).

thiagosf avatar Jan 04 '23 12:01 thiagosf

I close this issue because it seems outdated. If this issue is still relevant, let us know.

@thiagosf If you are facing a similar issue in React 18, feel free to open a new issue with updated details.

ahangarha avatar May 02 '23 18:05 ahangarha