Introduce highlight manager, add scroll on highlight
Summary: Introduced a highlight manager, which prevents drilling the highlight through the entire component tree and causing too many re-renders. Also smartly optimizes that non-matched highlighted text doesn't render unnecessarily, and debounces the updates. Finally, automatically scroll to the first highlight. Reviewed By: jknoxville Differential Revision: D21348575 fbshipit-source-id: 71f7ba2e981ad3fc1ea7f5e7043645e6b6811fb7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fd84820ee5
commit
fdff6aeae0
@@ -175,3 +175,4 @@ export {default as Info} from './components/Info';
|
||||
export {default as Bordered} from './components/Bordered';
|
||||
export {default as AlternatingRows} from './components/AlternatingRows';
|
||||
export {default as Layout} from './components/Layout';
|
||||
export * from './components/Highlight';
|
||||
|
||||
Reference in New Issue
Block a user