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 issue removing store subscriptions #572

Merged
merged 6 commits into from
Sep 27, 2022
Merged

Conversation

AlecAivazis
Copy link
Collaborator

@AlecAivazis AlecAivazis commented Sep 26, 2022

Fixes #570

This PR fixes an issue I was debugging with @endigma that was causing subscriptions to be cleared when lastVariables was null. The first version of this PR just removes that check since its no longer a leak for a store to remember its last variables (stores aren't global). If everything passes, I'm going to poke around the integration tests to make sure nothing is funky.

To help everyone out, please make sure your PR does the following:

  • Update the first line to point to the ticket that this PR fixes
  • Add a message that clearly describes the fix
  • If applicable, add a test that would fail without this fix
  • Make sure the unit and integration tests pass locally with pnpm run tests and cd integration && pnpm run tests
  • Includes a changeset if your fix affects the user with pnpm changeset

@changeset-bot
Copy link

changeset-bot bot commented Sep 26, 2022

🦋 Changeset detected

Latest commit: 505074f

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

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

@vercel
Copy link

vercel bot commented Sep 26, 2022

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

Name Status Preview Updated
docs ✅ Ready (Inspect) Visit Preview Sep 26, 2022 at 11:56PM (UTC)
docs-next ✅ Ready (Inspect) Visit Preview Sep 26, 2022 at 11:56PM (UTC)

@AlecAivazis AlecAivazis changed the title don't remove the lastVariable tracker Fix issue removing store subscriptions Sep 26, 2022
@AlecAivazis AlecAivazis merged commit 7d1f8b0 into main Sep 27, 2022
@AlecAivazis AlecAivazis deleted the last-variable-clear branch September 27, 2022 00:41
@github-actions github-actions bot mentioned this pull request Sep 27, 2022
endigma pushed a commit to endigma/houdini that referenced this pull request Nov 10, 2024
* don't remove the lastVariable tracker

* added changeset

* remove changeset import

* fix store import

* adde changeset

* update test
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.

LayoutLoad manual loading bad import name from generated code
1 participant