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

Make watchers clearable via $watch #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Gumball12
Copy link
Owner

@Gumball12 Gumball12 commented Jul 23, 2024

Related to #5

Add functionality to clear watchers via the $watch method.

  • src/index.ts
    • Add a clear method to the $watch property to remove watchers from the store.
    • Implement the clearWatcher function to handle the removal of watchers.
  • tests/index.test.ts
    • Add tests to verify that watchers can be cleared via the $watch method.
    • Add tests to ensure that cleared watchers do not trigger after being cleared.
  • README.md
    • Update documentation to include instructions on how to clear watchers via the $watch method.

For more details, open the Copilot Workspace session.

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.

1 participant