Skip to content

Conversation

eBrainMachine
Copy link

I'm the reporter from this issue.

Happens when storage type is set to session. The .current property isn't always reactive when accessing the PersistedState object on a different component via getContext. By removing the storageType === "local" check, the behavior is now consistent with the local storage type.

Apologies if this isn't the right place to post this or if I'm just using this wrong.

Copy link

changeset-bot bot commented Jul 24, 2025

🦋 Changeset detected

Latest commit: 24b07b1

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

This PR includes changesets to release 1 package
Name Type
runed 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

@eBrainMachine eBrainMachine changed the title fix(persisted-state): removed storateType check when creating subscriber fix(persisted-state): move storage type check to subscriber callback Sep 6, 2025
@eBrainMachine
Copy link
Author

Applied changes based on feedback from this issue #294 (comment)

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.

2 participants