-
Notifications
You must be signed in to change notification settings - Fork 402
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
CB-4018 fix: hides chart settings if charts tab is not selected #2433
Closed
sergeyteleshev
wants to merge
13
commits into
devel
from
CB-4018-the-settings-button-remains-after-switching-from-charts-to-the-table
Closed
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
64c4be1
CB-4018 fix: hides chart settings if charts tab is not selected
6a01192
CB-4018 adds to DynamicDataContext observable contexts
82be78b
Revert "CB-4018 adds to DynamicDataContext observable contexts"
0718e09
Revert "CB-4018 fix: hides chart settings if charts tab is not selected"
e2c3705
CB-4018 fix: hides chart settings if charts tab is not selected [2]
5501d9b
СB-4018 reportObserved for TempDataContext hasOwn fn
ba050d8
СB-4018 reportObserved for TempDataContext getOwn fn
e1281de
СB-4018 fix: TempDataContext mobx subscriptions works correctly
61bcaa0
CB-4018 atom is privated
8af11e2
Merge branch 'devel' into CB-4018-the-settings-button-remains-after-s…
c1f397d
Merge branch 'devel' into CB-4018-the-settings-button-remains-after-s…
dariamarutkina 0d59e3a
Merge branch 'devel' into CB-4018-the-settings-button-remains-after-s…
33d625e
Merge branch 'devel' into CB-4018-the-settings-button-remains-after-s…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this map is special map that should not trigger mobx reactions, seems like problem here that we can skip subscription to the origin context (target)
example:
imagine this code in the render function:
what will happen:
map
has
call will be equal tothis.map.has(context)
map
is empty and value is in original contextcontext
How to fix:
lets look at
hasOwn
method:we need to rewrite it:
now we will always subscribe to the target context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we also need a
signal
when we flush datahttps://mobx.js.org/custom-observables.html
so we will call
this.atom.reportObserved()
each time we accessTempDataContext
andthis.atom.reportChanged()
each time we flushlike this: