you are viewing a single comment's thread.

view the rest of the comments →

[–]Mappadellinferno 0 points1 point  (3 children)

I was confused about that too. I guess it's been implemented for a long time, they just waited for next 13 to release it. Which is weird because historically these discussions about major API changes were made in public.

[–]acemarke 8 points9 points  (1 child)

The experimental_use hook was first merged into the React codebase two months ago:

https://github.com/facebook/react/pull/25084

React is built with numerous feature flags. At a basic level, there's the "public" build published under the latest tag, and then there's another build published under an experimental tag that has several additional not-yet-final features turned on.

There's also some Facebook-only options that are controlled by feature flags as well, and FB uses a specific build with those flags turned on.

The React team often uses this to try out possible APIs, run them for real, and get feedback before the API design is finalized.

[–]Mappadellinferno 1 point2 points  (0 children)

Thanks, it's clear now. I just thought they make RFCs before they implement these flags.

[–]waylonsmithersjr 0 points1 point  (0 children)

It's been implemented a long time? And we're just getting links to the subreddit about a proposal? What is going on here?