Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use NcReferenceList in whiteboard #73

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Conversation

grnd-alt
Copy link
Member

@grnd-alt grnd-alt commented Jul 17, 2024

resolves: #9

@juliusknorr
Copy link
Member

juliusknorr commented Jul 18, 2024

Forgot to paste from our call notes:

  • Test different file types and styling
  • Check if height can be made fit the full frame for interactive widgets
  • Check react hooks loop issue


// embeddables get updated a lot by the excalidraw library when collaboration is active
// we need to filter out useless updates to not rerender every millisecond.
// current master of the excalidraw library probably fixes this issue but it's not available in excalidraw@latest (0.17.6)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checking if the objects are DeepEqual is a workaround. Not entirely certain, but I do think if we could use the lib like excalidraw.com does here: https://github.com/excalidraw/excalidraw/blob/master/excalidraw-app/collab/Collab.tsx#L751 we would not need this workaround. However I couldn't figure out how to use the master version of excalidraws library in our build process.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, being able to build from master or another branch/a fork there is something that could certainly be useful, but we can check that separately

stop infinite rerending when collaborating

Signed-off-by: grnd-alt <[email protected]>
@grnd-alt grnd-alt marked this pull request as ready for review August 6, 2024 08:03
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works like a charm 👍

@juliusknorr juliusknorr merged commit 57755e1 into main Aug 6, 2024
22 checks passed
@juliusknorr juliusknorr deleted the feat/custom-web-embed branch August 6, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom widget rendering
2 participants