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

Add docs and tests to show how to reset a store to some initial values #51

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

luisherranz
Copy link
Owner

What

Add docs section and tests to show how to reset a store to some initial values.

Why

Because it may not be immediately obvious: #49

How

Just adding a new "Common Patterns" section in the docs, and adding a couple of tests to make sure that doing Object.assign in the deep signal works as expected.

There's no need for a changeset here because the code didn't change.

@luisherranz luisherranz linked an issue Sep 22, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

Size Change: 0 B

Total Size: 6.2 kB

ℹ️ View Unchanged
Filename Size
packages/deepsignal/core/dist/deepsignal-core.js 1.01 kB
packages/deepsignal/core/dist/deepsignal-core.mjs 1 kB
packages/deepsignal/dist/deepsignal.js 1.05 kB
packages/deepsignal/dist/deepsignal.mjs 1.04 kB
packages/deepsignal/react/dist/deepsignal-react.js 1.05 kB
packages/deepsignal/react/dist/deepsignal-react.mjs 1.04 kB

compressed-size-action

@luisherranz luisherranz merged commit 50c25a8 into main Sep 22, 2023
3 checks passed
@luisherranz luisherranz deleted the reset-store branch September 22, 2023 08:30
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.

Resetting the initial state of a deepSignal
1 participant