Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jan 20, 2022
1 parent 2476641 commit d05836c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ describe('Shared useSyncExternalStore behavior (shim and built-in)', () => {
const store = createExternalStore('Initial');

function App() {
const text = useSyncExternalStore(store.subscribe, store.getState, store.getState);
const [derivedText, setDerivedText] = useState(text)
const text = useSyncExternalStore(store.subscribe, store.getState);
const [derivedText, setDerivedText] = useState(text);
useEffect(() => {}, []);
if (derivedText !== text.toUpperCase()) {
setDerivedText(text.toUpperCase());
Expand Down

0 comments on commit d05836c

Please sign in to comment.