purescript-react / purescript-react-basic-hooks

An implementation of React hooks on top of purescript-react-basic
https://pursuit.purescript.org/packages/purescript-react-basic-hooks/
Apache License 2.0
200 stars 33 forks source link

Add new hooks (for React v18) #64

Closed pete-murphy closed 2 years ago

pete-murphy commented 2 years ago

With the update to React v18, there are some new hooks that aren't yet implemented in this library:

The latter two are "intended to be used by libraries, not application code." I'd be happy to look into implementing these and adding tests if that's desirable.

megamaddu commented 2 years ago

that'd be awesome, i'm about to move and probably won't have time to attempt it myself until july or later

i-am-the-slime commented 2 years ago

@ptrfrncsmrph Sorry, I didn't read all the way until the end of your comment to see that you wanted to implement these.

pete-murphy commented 2 years ago

No problem! I was a bit stumped with how to go about useSyncExternalStore and useInsertionEffect to be honest, still haven't used any of the React 18 stuff...