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

breaking: rename $effect.active to $effect.tracking #12022

Merged
merged 6 commits into from
Jun 14, 2024
Merged

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Jun 13, 2024

This PR renames $effect.active() to $effect.tracking(). $effect.active() wasn't a great name as it didn't really provide context on what it was really doing, so we feel this name is far better. Notably too, $effect.tracking() will return false if wrapped inside an untrack.

Copy link

changeset-bot bot commented Jun 13, 2024

🦋 Changeset detected

Latest commit: e47472e

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

@dummdidumm
Copy link
Member

We should note the rename somewhere, given that we're into RC land now, like, when you import it you should get a clear error that you should rename it to tracking. Not sure where the best place is for that.

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.

3 participants