Reactjs – Idiomatic way to track if Suspense finish
Example: <Suspense fallback={<ClearLoading />}> // stuff </Suspense> To track if the whole suspense node finishes loading, I put an effect cleanup in <ClearLoading> like this: const ClearLoading = () => { useEffect(() => { return () => { // Do…