Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 #406

Open
StorytellerCZ opened this issue May 25, 2024 · 0 comments
Open

React 19 #406

StorytellerCZ opened this issue May 25, 2024 · 0 comments

Comments

@StorytellerCZ
Copy link
Collaborator

React 19 will have some awesome features which I think will work nicely with Meteor or at the very least we should take advantage of as we create a new major versions for react hooks. Bellow are some of my thoughts, but I would like to hear what everyone else has to say.

My notes so far what the next major version of the package should do:

  • Remove any old workarounds and focus strictly from React 19, hopefully this will get rid of any strange behavior
  • New hook to wrap useOptimistic hook to work seamlessly with Meteor.call or maybe in some way replace it so that it works better in the React paradigm. The problem here being that the simulated methods update minimongo which then re-renders the component and so on.
  • use API seems interesting and on first look it seems to me that it could help simplify a lot of the data fetching stuff.
  • Preloading API might be utilize in some fashion to improve Meteor's app load time or at the very least we could experiment here to see what we can do in the Meteor context with this. Maybe in combination with SSR we could SSR the initialization of React on the server and with it send all the rest, but this is probably a bit more out there.
  • React compiler, while not in scope for these packages, we should make sure that it can be used and be recommended in the Meteor Guide, right now I have some issues.

Out of scope for this package, but to be considered is this: https://remix.run/blog/merging-remix-and-react-router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant