Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@giraugh
Copy link

@giraugh giraugh commented Oct 17, 2024

Closes #327

Went looking for this feature and spotted the issue so thought I'd try my hand at the simple change. Happy to make further changes or add/update tests if desired πŸ‘

Thanks for all your work on y.js :)

@giraugh giraugh changed the title Return unobserve functions from observe and observeDeep methods (Fix #327) Return unobserve functions from observe and observeDeep methods Oct 17, 2024
@dmonad
Copy link
Member

dmonad commented Oct 19, 2024

Thanks for the PR!
I'm not sure if I like the approach. I'd prefer observe(f) to return f. I added a comment in #327.

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.

Return an unobserve function from observe and observeDeep

2 participants