-
Notifications
You must be signed in to change notification settings - Fork 7
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
#127 Made annotatingEnabled
property reactive
#128
Open
oleksandr-danylchenko
wants to merge
26
commits into
recogito:main
Choose a base branch
from
oleksandr-danylchenko:#127-annotating-enabled-reactive
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
edd2e4a
Added `annotatingEnabled` flag updating support
oleksandr-danylchenko 2c5b4da
Added `annotatingEnabled` update from the react wrapper
oleksandr-danylchenko 2c9fb93
Added undefined `annotatingEnabled` prop handling
oleksandr-danylchenko e6ef046
Added cleanable `debounce` function
oleksandr-danylchenko da40d2c
Added selection state cleanup on annotating disabling
oleksandr-danylchenko 5baebe7
Decreased debounce timeout to 10ms
oleksandr-danylchenko 6b19a83
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko 3d7e09c
Added strict context binding to the debounced function
oleksandr-danylchenko c0dc156
Added context-unaware `debounce` wrapper
oleksandr-danylchenko 822ee71
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko 0b4ebc9
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko 21249d7
Replaced custom `debounce` method with the library one
oleksandr-danylchenko ffd4564
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko a4079b0
Decreased debounce timeout to 10ms
oleksandr-danylchenko 06adc93
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko eb65af5
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko ac26a81
Merged `main` into `#127-annotating-enabled-reactive`
oleksandr-danylchenko befcf51
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko 8084534
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko b3e9a54
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko 2ee7384
Removed `isContextMenuOpen` usage
oleksandr-danylchenko 7a44635
Added `isLeftClick` reset on annotating disabling
oleksandr-danylchenko 843c284
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko 4249cc1
Added `annotatingEnabled` in opts handling
oleksandr-danylchenko 3ca9ab6
Merge branch 'main' into #127-annotating-enabled-reactive
oleksandr-danylchenko b2bbebc
Comment formatting
oleksandr-danylchenko 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
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
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.
We must clean the
onSelectionChange
debounced call to prevent it from running on obsolete values from the closure. Otherwise, theselectionchange
event will still get processed in the deferred call, even though thecurrentAnnotatingEnabled
becamefalse
.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.
I wonder how crucial that is though. Would
annotatingEnabled
get called during a selection in practice? The normal use cases I would see is: