Skip to content

React 19 #406

Open
Open
@StorytellerCZ

Description

@StorytellerCZ

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions