You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to type the result of fetchOffsetPaginationHasMoreFallbackData to pass it to a client component where it then gets passed as fallbackData. The closest I have found is:
type Result = Awaited<ReturnType<typeof recentBranchesQuery>> extends PostgrestResponseSuccess<infer T> ? T : never;
type Props = {
fallbackData: {
data: Result;
hasMore: boolean;
}[];
};
But I am not totally sure if this is actually correct, and it would be nice to include some helper types to do something similar? I am happy to open a PR with them. To Reproduce
If possible, open a PR with a failing test. Otherwise, describe how to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to type the result of
fetchOffsetPaginationHasMoreFallbackData
to pass it to a client component where it then gets passed asfallbackData
. The closest I have found is:But I am not totally sure if this is actually correct, and it would be nice to include some helper types to do something similar? I am happy to open a PR with them.
To Reproduce
If possible, open a PR with a failing test. Otherwise, describe how to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: