rstore + Pinia lead to Error: obj.hasOwnProperty is not a function ⁃ at shouldHydrate #2962
-
Reproductionhttps://codesandbox.io/p/github/gabrielstuff/rstore-pinia-demo/main?import=true Steps to reproduce the bugFirst, thanks for all the work on Pinia.
I'm using the following in my rstore :
which looks like working perfectly. In a real life example the rstore is making authenticated call with an API. Without Pinia everything is going fine. As soon as I add Pinia the following errors rised up :
Issue is coming from passing the headers like this :
Note that passing :
is working ok. Really don't get why it fails with Pinia. Expected behaviorShould render with SSR without issues Actual behaviorCrash Additional informationI've been looking at issue and discussion. I've tried to pnpm, rm node_modules, pinpoint version and lot of other suggestion without success. The reproduction is fairly simple and please note that Pinia alone works fine. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is exactly what happens for me too #2968, i don't know why this is not accepted as a bug, it happens on 100% of my projects. |
Beta Was this translation helpful? Give feedback.
-
Fixed in fd6d969 |
Beta Was this translation helpful? Give feedback.
Fixed in fd6d969