Replies: 1 comment 1 reply
-
Your fetcher is missing |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Please consider such component.
I sucessfully get image from server but I cannot see any data in console log.
Also I can't access SWR's error - it tells me error is not defined. And if I move
const {data, error} = useSWR(imageId && 'someUrl\getImage', getExistingFile);
above it tells me that getExistingFile function is not defined.
Also I wonder how could I implement cache for my images in future - to avoid downloading them again and again
Beta Was this translation helpful? Give feedback.
All reactions