-
-
Notifications
You must be signed in to change notification settings - Fork 148
Will Preact stay API compatible with React 16? #432
Comments
Hi there! All good questions. Preact-compat has to account for all of these changes, but some of them will remain in compat and not in core. Here's a list:
|
And hydrate |
Waiting for hydrate since this is a breaking change for aliasing with Next.js |
Is there an issue to follow for that? #406 is closed. I don't know if it's appropriate to reopen that one or start with a new one: is there definitely agreement that it's for Preact rather than for Preact-compat? |
@effulgentsia I think most people want Array returns in preact itself, but it's also quite possible doing so would necessitate a rewrite of the diff. In terms of ongoing discussion, @tkh44 was working some magic in #703. |
@developit Watching this closely as Next.js is strictly packed with React 16. Is there any chance to help you out with missing API changes? |
Yes! Jump on slack and we can work out what to do. |
Does anyone have a rough timeline for React 16 compatibility? Particularly interested in support for the |
They're basically the same (see #432)
They're basically the same (see #432)
Note, we added all of those in Preact X 🎉 We even ship with a rough implementation fo |
We usually alias to Preact in production because of the payload savings, but now that we moved to React 16 which was officially released yesterday, preact-compat is down (for instance when returning arrays). That raises questions as to how far we can go with Fiber anyway, even if preact-compat can patch some minor things. But will it support returning arrays, numbers and strings as results, portals, and eventually async scheduling?
The text was updated successfully, but these errors were encountered: