Created
September 21, 2022 17:02
-
-
Save chrisdhanaraj/a7adb83c8eb534ccdf1d2ff6cc091f6d to your computer and use it in GitHub Desktop.
Example
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
const TableWrapper = ({ | |
someProperty, | |
otherProperty | |
}) => { | |
const [data, loading] = useQuery({ | |
variables: { | |
someProperty, | |
otherProperty | |
} | |
}); | |
if (loading) { | |
return <Loader /> | |
} | |
return <Table someProperty={someProperty} otherProperty={otherProperty} data={data} /> | |
} | |
const Table = ({ | |
somePropeerty, | |
otherProperty, | |
data | |
}) => { | |
const computed = React.useMemo(() => {}, [data, someProperty]); | |
// ...othertThings | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment