Skip to content
Discussion options

You must be logged in to vote

We are using the use-sync-external-store shim provided by react. It uses the new hook if available and falls back to an implementation with useEffect for v17. other libs like redux do the same afaik.

"use-sync-external-store": "^1.2.0"

We run our tests both against v17 and v18, so both are fully supported.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bennettdams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants