kmoskwiak / useSSE

use Server-Side Effect ✨in React SSR app
https://kspr.dev/use-sse/
MIT License
138 stars 10 forks source link

feature/Support React 18 #45

Closed kmoskwiak closed 3 months ago

Vap0r1ze commented 3 months ago

Does this close #35? And does the commit message saying React 18+ mean you're targetting React 19 as well?

kmoskwiak commented 3 months ago

@Vap0r1ze Yes, it aims to close #35. Note that v3.0.0 is in beta and I am still bulletproofing it.

React 18 introduced a new API for SSR which supports Suspense Boundaries. I rewrote this hook to be compatible with this new API. As long as React 19 will support their new API it will work.

Thank you for the comment :)