pinia-vite-hotUpdate-issue #1722
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Search HMR in docs. There is a snippet to include in every store file. I wish there was a way to apply the code only once but it cannot be done, at least yet |
Beta Was this translation helpful? Give feedback.
-
I tried, is ok!But,I have 10 stores. Is this code(import.meta.hot) added to every file(store)? |
Beta Was this translation helpful? Give feedback.
-
Hi guys! @posva, I'm having the same doubt just as @JiangBingLong mentioned. In case of having many stores, is that necessary to add the snippet to enable HMR in each one? I was wondering if there is any way to reuse the snippet by creating a function or something like that. Also, it would be great if you could provide some example of enabling HMR in setup stores. Should I use the same syntax of options stores? Thank you in advance folks! 👊🏻 |
Beta Was this translation helpful? Give feedback.
Search HMR in docs. There is a snippet to include in every store file.
I wish there was a way to apply the code only once but it cannot be done, at least yet