Skip to content

loadPaths() is laggy for data coming in from onUpdate() via socket-io (Collaborative canvas) #42

Answered by AllanMwirigi
AllanMwirigi asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, again
So after doing some digging, I realized that using Immutable.Js as per the example you had given was the problem
I can't believe I never realized that using ImmutableJs was resulting in different types of the data in curentPaths, than what was expected on the Canvas and Paths.tsx
I first attempted to rework Paths.tsx to fit the types from ImmutableJs (mostly Maps). I was able to get it all done without any errors but still nothing would display on the Canvas.
Next, I attempted to remove the ImmutableJs stuff from the server. I'm glad to say that this is working well !!
I tried to replace the ImmutableJs code as best as I could. You can let me know if there is any serious down…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vinothpandian
Comment options

You must be logged in to vote
1 reply
@AllanMwirigi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14 on September 18, 2021 18:55.