mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
Requires full error message in assert helpers. Some of the error messages we asset on add a native javascript stack trace, which would be a pain to add to the messages and maintain. This PR allows you to just add `\n in <stack>` placeholder to the error message to denote a native stack trace is present in the message. --- Note: i vibe coded this so it was a pain to backtrack this to break this into a stack, I tried and gave up, sorry.
use-sync-external-store
Backwards-compatible shim for React.useSyncExternalStore. Works with any React that supports Hooks.
See also https://github.com/reactwg/react-18/discussions/86.