Skip to content

Hot Module reloading in vite #1645

@tintin10q

Description

@tintin10q

Describe the feature

With hot module reloading you don't have to do a full page refresh to view the changes you made in the code. This is quite nice and makes iterating much faster. Pinia supports hot module reloading with code like this:

import { acceptHMRUpdate } from "pinia";


if (import.meta?.hot) {
  import.meta.hot.accept(acceptHMRUpdate(useSomeStore, import.meta.hot));
}

Also see: https://vitejs.dev/guide/api-hmr.html

Is something like this also possible for pinia orm? At the moment every time I change anything about a pinia-orm model it reloads the whole page. Is a hmr like with pinia possible?

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions