
* suspense * iframe embeds * calendar list container * rename things as a container * use list container on onboarding * fix * rm code * newer alpha * make it work in react 17 * fix * fix * make components handle error state through `QueryCell` * fix constant * fix type error * type error * type fixes * fix package.lock * fix webhook invalidate * fix mt * fix typo * pr comment
9 lines
358 B
TypeScript
9 lines
358 B
TypeScript
import { Suspense, SuspenseProps } from "react";
|
|
|
|
/**
|
|
* Wrapper around `<Suspense />` which will render the `fallback` when on server
|
|
* Can be simply replaced by `<Suspense />` once React 18 is ready.
|
|
*/
|
|
export const ClientSuspense = (props: SuspenseProps) => {
|
|
return <>{typeof window !== "undefined" ? <Suspense {...props} /> : props.fallback}</>;
|
|
};
|