Skip to content

[Bug]: live-share-react: "Cannot call changeState when liveState is undefined" #574

@nmtoblum

Description

@nmtoblum

Dear live-share-sdk team,

I've been using the library a lot in the last few weeks and wanted to say thank you for your work. With it you can build really great apps that are a lot of fun. I'm still struggling with some of the implementation details with React, so I wanted to try live-share-react, but I haven't had any success yet.

  • I have reviewed the FAQ and known issues and did not find my topic

Describe the bug

I built a minimal example (based on vite+react+ts) based on your 04.live-share-react example. When I try to work with LiveState objects I get the error message: Cannot call changeState when liveState is undefined

This happens everytime I try to manipulate the LiveState.

Often but not always I get different error messages on initialization (happens before working with the shared objects).

  • provided user was not an "AzureUser"
  • Warning: Error in processing request : interactive.getClientInfo with error Unhandled message
  • Or something like this:
    error1

To Reproduce

I have published the minimal code and manifest used here: https://github.com/toblum/spotalot/tree/live-share-react

Expected behavior

Should be able to change the LiveState

Screenshots

see above

Desktop(s) (please complete the following information):

  • OS: Mac OS / Win 11
  • Browser: Chrome
  • Version: Latest

I would be great to get an idea what is going wrong here in my example.

Best regards
Tobias

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnew submissionIssues that have been filed and not yet processed by DRI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions