Skip to content

Commit

Permalink
fix: add missing parentheses typo in useFocusEffect error message (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
lipidity authored and satya164 committed Nov 27, 2022
1 parent 35eaf44 commit 9636516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/useFocusEffect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function useFocusEffect(effect: EffectCallback) {
'Instead, write the async function inside your effect ' +
'and call it immediately:\n\n' +
'useFocusEffect(\n' +
' React.useCallback() => {\n' +
' React.useCallback(() => {\n' +
' async function fetchData() {\n' +
' // You can await here\n' +
' const response = await MyAPI.getData(someId);\n' +
Expand Down

0 comments on commit 9636516

Please sign in to comment.