-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: disable sending updates to client for effectively non-visible …
…nodes (CP: 1.0) (#16875) * chore:disable sending updates to client for effectively non-visible nodes (#15885) (CP: 1.0) Manually cherry-picked for 1.0 New changes through cherry picking: - small changes around the stream peek (sentToBrowser is not existing in this code base) - and the filtering invocations part, - and owner Optional handling, Old changes: - Disable sending updates to client for effectively non-visible nodes - Fix test: Always set tested component visible first; only assume node has changed if testvalue differs from original value - Cleanup, and refactoring, in Element, StateNode, UIInternals classes + mvn formatter. * chore: #16836 and #16855 PR-s merged to this one, and fine tuned for this code-base (remove detach listener when javascript execution completes, and nullify registration) - Added handling Optional<StateNode> for computeIfAbsent and other places, - Covering test class (and so tests) is/are fully missing from this version (need to add somewhere else), - Deleted/Commented invocation.then(callback, callback) as this concept is not existing here, but added other snippet for handling registration removes, - Tailored the code to the codebase.
- Loading branch information
Showing
5 changed files
with
336 additions
and
12 deletions.
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
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.