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 disposeValue callback to Computed, such that old values can be properly disposed #857

Closed
fzyzcjy opened this issue Sep 4, 2022 · 0 comments · Fixed by #894
Closed
Labels
enhancement New feature or request

Comments

@fzyzcjy
Copy link
Collaborator

fzyzcjy commented Sep 4, 2022

No description provided.

@fzyzcjy fzyzcjy added the enhancement New feature or request label Sep 4, 2022
fzyzcjy added a commit to fzyzcjy/mobx.dart that referenced this issue Sep 4, 2022
fzyzcjy added a commit to fzyzcjy/mobx.dart that referenced this issue Sep 4, 2022
@fzyzcjy fzyzcjy changed the title Add onDispose callback to Computed, such that old values can be properly disposed Add disposeValue callback to Computed, such that old values can be properly disposed Sep 4, 2022
fzyzcjy added a commit to fzyzcjy/mobx.dart that referenced this issue Sep 6, 2022
This reverts commit 263155b.

# Conflicts:
#	mobx/test/computed_test.dart
fzyzcjy added a commit to fzyzcjy/mobx.dart that referenced this issue Sep 6, 2022
…alues can be properly disposed mobxjs#857"

This reverts commit bbd9020.
@amondnet amondnet mentioned this issue Jan 27, 2023
7 tasks
amondnet added a commit that referenced this issue Feb 16, 2023
* add `nonObservableInner`, such that users can bypass observability system for performance

* chore: format code

* feat: Add `onDispose` callback to `Computed`, such that old values can be properly disposed #857

* test: add tests to `disposeValue` #857

* test: add tests for "Allow users to bypass observability system for performance"

* feat: add `Computed.dispose` #859

* test: add tests for Computed.dispose

* test: reproduce #855

* fix: Avoid unnecessary observable notifications of `@observable` fields of `Store`s #855

* Revert "test: add tests for Computed.dispose"

This reverts commit 63d57ef.

* Revert "feat: add `Computed.dispose` #859"

This reverts commit 20fe5d3.

* Revert "test: add tests to `disposeValue` #857"

This reverts commit 263155b.

# Conflicts:
#	mobx/test/computed_test.dart

* Revert "feat: Add `onDispose` callback to `Computed`, such that old values can be properly disposed #857"

This reverts commit bbd9020.

* format code and minor change to code

* add Observable.nonObservableValue

* fix: Reaction lacks toString, so cannot see which reaction causes the error #864

* feat: Add StackTrace to reactions in debug mode to easily spot which reaction it is #864

* fix linter errors

* add toString and debugCreationStack

* test: add atom_test

---------

Co-authored-by: fzyzcjy <ch271828n@outlook.com>
Co-authored-by: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment