v1.0.0-preview.10, LiveState revamp & bug fixes #527
ryanbliss
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have revamped
LiveState
anduseLiveState
in this version due to developer feedback, and to accomplish this we had to make a breaking change. Rather than have separatestate
anddata
values inLiveState
, there is now a single value.If you are currently using
LiveState
in your application, here are the relevant changes:For Live Share React, similar to
useSharedState
, you can now simply do this:Other changes include:
initialState
was not getting set when usingLiveState.initialize()
localUserCursor
prop in Live Share React'suseLiveCanvas
hook was not properly setting changesThis discussion was created from the release v1.0.0-preview.10, LiveState revamp & bug fixes.
Beta Was this translation helpful? Give feedback.
All reactions