You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last year, React introduced a new hook: useOpaqueIdentifier (facebook/react#17322). I wasn't that eager to implement it, but things have changed, as it gets some lifting and will be replaced by useId (reactwg/react-18#111). This could be used to replace randomIds entirely, but has a drawback - we'd have to increase the minimum React version to 18.
I'll add it to the v4.0 milestone, but it may not be implemented that soon or even at all.
The text was updated successfully, but these errors were encountered:
Since using useId will force us to declare a peer dependency of ^18 for React we've decided the benefits of using it are not worth it for now. We will postpone this change for another major version in the future (initially v5).
Last year, React introduced a new hook:
useOpaqueIdentifier
(facebook/react#17322). I wasn't that eager to implement it, but things have changed, as it gets some lifting and will be replaced byuseId
(reactwg/react-18#111). This could be used to replacerandomIds
entirely, but has a drawback - we'd have to increase the minimum React version to 18.I'll add it to the v4.0 milestone, but it may not be implemented that soon or even at all.
The text was updated successfully, but these errors were encountered: