Releases: Jdyn/use-phoenix
v0.0.3
What's Changed
- fix(presence): fix presence not synchronizing states properly by @timadevelop in #7
New Contributors
- @timadevelop made their first contribution in #7
Full Changelog: v0.0.2...v0.0.3
0.0.2
Full Changelog: v0.0.1...v0.0.2
2024-4-5
Breaking changes
-
before a channel connects,
datais nowundefinedrather thannull -
basic
useEventdata cachingThe last response from any
useEventis cached across all instances. This means that if if you recieve any event for a channel topic, and for example theuseEventhook unmounts, once it remounts, it will instantly load the last recieved data and state for the givenevent.Previously if you recieved an event and the hook unmounted and remounted, the data stored in the
useEventhook was lost and you have needed to recieve the event again to get the data back.Once you leave a channel using
leave()all cached data for theuseEventwill be cleared.
Additional changes
-
useChannelnow accepts apassiveoptionpassivewill instruct the channel to wait for another instance ofuseChannelto connect with the necessary params and then once a connection is made, thepassivechannel will connect itself. See the js docs for more information.