You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library! I am running into issues with useReceivePeerState and React w/ hooks. It seems that the state variable returned from useReceivePeerState does not update when there is new data on the channel. However, refreshing the page causes the latest data to be loaded. My receiver code is pretty much identical to your sample:
Hi,
Thanks for the library! I am running into issues with
useReceivePeerState
and React w/ hooks. It seems that thestate
variable returned fromuseReceivePeerState
does not update when there is new data on the channel. However, refreshing the page causes the latest data to be loaded. My receiver code is pretty much identical to your sample:So, this code only works when manually refreshing the page. It does cause a re-render when new data is sent from the peer.
The text was updated successfully, but these errors were encountered: