typing Page props ?
is it possible to type the props for the page? I'm tryna to block the page until render, and the best I've come up with is:
but the props have to be manually typed
but the props have to be manually typed
undefined, or do optional chaining like | undefineddeferStreamdeferStreamdeferStreamcreateAsyncDeferredselections<Show>selections()?.valueconst createAsyncDeferred = <T,>(
...args: Parameters<typeof createAsync<T>>
) => {
const [fn, opts] = args;
return createAsync<T>(fn, {
...opts,
deferStream: true,
}) as Accessor<T>;
};const user = createAsync(() => getUser(params.id));