Connect2IC / connect2ic

https://connect2ic.github.io/docs/
MIT License
92 stars 19 forks source link

Warning: The result of getSnapshot should be cached to avoid an infinite loop #11

Closed QiYan93 closed 2 years ago

QiYan93 commented 2 years ago

When use [useConnect]

image

MioQuispe commented 2 years ago

When use [useConnect]

image

Hey thanks for reporting. Can you tell me a bit more like which versions you are using, and if its svelte/vue/react? some code could be good too

QiYan93 commented 2 years ago

thanks for replying to me.

version: 0.0.7 library: React

image

Header.jsx:

image

App.jsx

image

A warning appears whenever [useConnect] is used.

MioQuispe commented 2 years ago

Ok I will probably investigate it during the week. thanks for reporting

tarek-eg commented 2 years ago

I saw the same issue too with react and latest version

MioQuispe commented 2 years ago

When use [useConnect]

image

Hey please try latest version 0.1.0 and see if you're still getting it. I havent encountered it myself.