Replies: 4 comments 7 replies
-
Can you share entire codebase of the minimal reproduction? It feels like sth wrong with bundling that didn't resolve the default import properly |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I can share the entire codebase but I can share our usage...
we are using common.js |
Beta Was this translation helpful? Give feedback.
-
The issue is not related to the swr usage, more related to the bundle strategy. The module is loaded by Might be related to if you forcedly specify commonjs transform somewhere in your project. |
Beta Was this translation helpful? Give feedback.
-
Hi, would it be reasonable for SWR to provide a named export for infinite from swr root? We just stumbled into this issue, and it seems the deep modules cause issues where other packages do not. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Description / Observed Behavior
Hi, lately I am facing issues with useSWR, it seems that something has been changed in the last versions and it is not a function anymore.

I got to it by using
import useSWRInfinite from 'swr/infinite';
The problem starts with the last update from 0.5.6 -> 1.3.0
Beta Was this translation helpful? Give feedback.
All reactions