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
You shouldn't store the app instance in a store as it creates a cyclic reference to itself through internal properties but if you do make sure to markRaw() befor setting it this.app = markRaw(data.app).
Reproduction
https://codesandbox.io/s/spring-sound-y7j6o1?file=/src/store.ts
Steps to reproduce the bug
Create a state interface with Vue app instance type.

Create a Pinia store with the state above and implement an action to set the app instance.
The action param should use the state interface to ensure the typing is the same.

Check the type error in code line 11 in store.ts

Expected behavior
Since the action param and the state are using the exact same type, it should not complaint about the type error.
Actual behavior
The pinia instance attach to Vue instance somehow showing different typings.
Additional information
No response
The text was updated successfully, but these errors were encountered: