Kashuab / mobx-depot

Scaffold MobX-powered models, queries and mutations with your GraphQL schema.
https://mobx-depot.dev
MIT License
8 stars 0 forks source link

Vite Fast Refresh does not work #18

Closed Kashuab closed 1 year ago

Kashuab commented 1 year ago
Screen Shot 2023-02-18 at 11 44 00 AM
Kashuab commented 1 year ago

The original issue may have been resolved when I removed the RootStoreContext.

However, I'm noticing that edits to non-base models (i.e. UserModel.ts) results in page reloads. This may because I have a separate AppStore with a singleton that instantiates a UserModel upon initialization.

Kashuab commented 1 year ago

I'm not sure this is addressable... If anyone has experience with HMR that could chime in with ideas that'd be great. Marking this as a non-pre-release issue.