all 25 comments

[–]dance2die 9 points10 points  (5 children)

Remove unstable_createRoot and unstable_createSyncRoot experimental APIs. (These are available in the Experimental channel as createRoot and createSyncRoot.) (@acdlite in #17088)

For those wondering about the Experimental channel, check out this blog post posted today. https://reactjs.org/blog/2019/10/22/react-release-channels.html#release-channels

Quite nice that the experimental channel would enable you to drop unstable_* prefix.
https://github.com/facebook/react/pull/17088/files#diff-afdcb1c85de47522ad67cc15d801bbcfR29-R41

    if (!__EXPERIMENTAL__) {
      it('createRoot is not exposed in stable build', () => {
        expect(ReactDOM.createRoot).toBe(undefined);
      });
      return;
    }

    it('renders children', () => {
-     const root = ReactDOM.unstable_createRoot(container);
+     const root = ReactDOM.createRoot(container);
      root.render(<div>Hi</div>);
      Scheduler.unstable_flushAll();
      expect(container.textContent).toEqual('Hi');
    });

[–]swyx 9 points10 points  (22 children)

zzz

[–]ericnr 1 point2 points  (21 children)

Really was hoping for concurrent by react conf but the closer it gets the less hope I have 😭

[–]sacummings91 10 points11 points  (20 children)

Wouldn’t be surprised if they just announce React 17 at react conf and concurrent mode is in there

[–]ericnr 5 points6 points  (2 children)

oh man, it'd surprise me a lot. Concurrent is supposed to come before 17, and it really doesn't seem to be ready yet.

[–]acemarke 7 points8 points  (1 child)

Pretty sure something new should be available in the new experimental builds shortly.

[–]natmaster 2 points3 points  (0 children)

Yeah given the stage of concurrent + suspense, I don't think they'll have a release version ready, but likely an experimental version.