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

fix: improve non state referenced warning #9809

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Dec 6, 2023

Now we have deep reactive state, this warning could do with a bit of improvement. Currently it warns on this:

some_state.foo.bar = something_else;

It should really only warn when re-assigning some_state. So this PR fixes that.

Copy link

changeset-bot bot commented Dec 6, 2023

🦋 Changeset detected

Latest commit: 0a333e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-5-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2023 4:03pm

@dummdidumm
Copy link
Member

Could you add a test to the validators test suite, checking that it doesn't show up for foo = .. but not for bar.baz = ..? Otherwise LGTM

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

Successfully merging this pull request may close these issues.

None yet

2 participants