Replies: 2 comments
-
Please fix the format of your code snippets, it’s really hard to read and understand. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
🐛 it is i |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
we are using the useSWRInfinite in our project.
This is an example of our code.
const { data: initialData, error: networkErrorMessage, isValidating, size, setSize, } = useSWRInfinite( (idx, previousData) => { if (!isReady) return if (previousData?.data?.error?.code === 1) return null else if (!payload) return null return
api address~~`},
{ initialSize: 2 }
)
In some cases, we get the initialData : 1.
but we already catch that error to make undefined. but its still make some problem. plz help us and Is it BUG in useSWRInfinite?
Beta Was this translation helpful? Give feedback.
All reactions