Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I defineStore, if I use the same id as another Store, the data is not rendered to the page and no error is reported in the console. #2597

Closed
hktcodingnow opened this issue Mar 5, 2024 · 1 comment

Comments

@hktcodingnow
Copy link

Reproduction

When I define the same id as other stores in the store defineStore, the data is not rendered to the page and there is no error message in the console.

Steps to reproduce the bug

image
I'm using the Pinia persistence plugin, and I've defined a store with an id of Data in another store's js, and this is causing the page data to not be rendered.
屏幕截图 2024-03-05 212433
When I changed the id to a unique id, the problem was solved.
image
image

Expected behavior

I'd like to be able to get relative bug feedback in the console when I run into a similar problem, rather than no error message at all, which is detrimental to my development.

Actual behavior

When I defineStore, if I use the same id as another Store, the data is not rendered to the page and no error is reported in the console.I'd like to be able to get relative bug feedback in the console when I run into a similar problem, rather than no error message at all, which is detrimental to my development.

Additional information

No response

Copy link
Member

posva commented Mar 5, 2024

Duplicate of #1394

@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants