You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server-side code re-evaluation is independent of backend, but the front-end code re-evaluation only support Blaze.
Me and @theodorDiaconu have spent a fair amount of time trying to figure out how to get it working for React, but afaict there is no simple solution.
The primary problem is that React components aren't globally declared. You define a React component in some file and then import that React component into another file. So re-evaluating a single file in isolation doesn't make sense, you have to re-evaluate the whole graph of dependencies that depend on that component.
My knowledge of React is super super limited, so maybe there's a way around this. I would really love to support React
The problem of globally declared components aka Component Registry (concept found in https://github.com/cult-of-coders/react-molecule) is solved, however the solution for React would imply that you use molecule's registry for all your components. If you do that, something like reval can be easily done.
Currently the effort put into achieving something like this implies a new way of architecting your app which implies large refactor efforts. It's currently not worth it.
Does this only work for Blaze or will it work for React as well?
The text was updated successfully, but these errors were encountered: