Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

problem synching state when using async onJoin

See original GitHub issue

I am experiencing the same problem described in Did anything change since 2018 on this topic?

Uncaught TypeError: Cannot read property 'length' of undefined
    at Object.fossilDelta.apply (VM301 1.chunk.js:17943)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

dclipcacommented, Jun 18, 2020

@endel Thanks for the quick response!

dclipcacommented, Jun 18, 2020

Actually it doesn’t have to do anything with async. It was because there was no state at all when the first client connects and I added it before I make my async action (API call).

Read more comments on GitHub >

github_iconTop Results From Across the Web

problem synching state when using async onJoin #137 - GitHub
The scenario I'm having is: onInit() is async. The state is set only after a timeout. onJoin() is async. The state is mutated...
Read more >
State update and onJoin timing | Colyseus Discussion Group
I'm having a few issues trying to integrate Colyseus with Phaser 3, ... onAuth method (using a Promise, not the async method /...
Read more >
Dealing with async function doing sync work - Stack Overflow
The problem is that some of the class implementing this interface does not need to do work asynchronously so my current solution is...
Read more >
Fixing sync over async issues in .NET / C# with Visual Studio ...
Asynchronous programming has been around for several years on the .NET platform but has historically been very difficult to do well.
Read more >
Problem with async/await pattern -- in C# and JavaScript
The problem with the async/await pattern now is that to use it, you have to decide if a function is synchronous or asynchronous....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found