Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare a dependency on scheduler (#24802)
Summary: ReactNativeRenderer has `require('scheduler')` in it but we don't seem to declare a dependency. As a result, the latest sync broke `useEffect` in open source master: ```js function Counter() { const [count, setCount] = useState(0); useEffect(() => { const id = setInterval(() => { setCount(c => c + 1); }, 1000) return () => clearInterval(id); }, []) return <View><Text>{count}</Text></View> } ``` <img width="535" alt="Screen Shot 2019-05-10 at 3 26 05 PM" src="https://user-images.githubusercontent.com/810438/57535832-e04dc000-733a-11e9-8e3e-d685171ec55a.png"> This adds an explicit dependency on the same version we're currently using internally. <img width="535" alt="Screen Shot 2019-05-10 at 3 47 42 PM" src="https://user-images.githubusercontent.com/810438/57535886-f65b8080-733a-11e9-82c3-78e6c3a3888b.png"> Pull Request resolved: #24802 Differential Revision: D15295252 Pulled By: hramos fbshipit-source-id: cd897ac590de1b719f28234f7631b0dcc069d043
- Loading branch information