Swr: When using new cache ability getting a console warning regarding circular dependency

Created on 2 Apr 2020  路  2Comments  路  Source: vercel/swr

First of all, everything works fine and as expected :)..

I'm just getting a warning that I guess should be addressed

image

Steps to reproduce -> create a fresh RN app (non expo for that matter..)

import useSwr, {cache} from 'swr'; // import and off course use them both so it won't get tree shaked.

I'll also try and take a crack at it soon.

Cheers

Most helpful comment

@omerman @henry-ns thanks for reporting! this issue was been resolved in #493 . the change will be delivered into next release.

All 2 comments

I got this warning too.

Screenshot from 2020-07-16 13-31-13

@omerman @henry-ns thanks for reporting! this issue was been resolved in #493 . the change will be delivered into next release.

Was this page helpful?
0 / 5 - 0 ratings