-
Notifications
You must be signed in to change notification settings - Fork 20
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
Remote cursors pvh #25
base: presence-color
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for tee-production ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for tangerine-dolphin-eefe36 failed.
|
@@ -69,13 +72,37 @@ export function MarkdownEditor({ | |||
|
|||
const handleReady = handle.isReady(); | |||
|
|||
const account = useCurrentAccount(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS: this hook is driving me crazy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specifically, it's annoying that i have to check several levels of hierarchy (account, currentaccount, doc) and then i still have the type / anonymous stuff where if the type is anonymous i have to reinvent the name & a color every time...
my suggestion is that we set the name to anonymous (at least in the hook but i think in the doc too) and pick a random presence color and leave it on the contact doc.
Is this ready to review? |
@paulsonnentag here's ... most of a patch to implement remote cursors & selection sharing (I was annoyed yesterday that I didn't have it). It's still a bit rough but it's close. I seem to be sharing the selection data and creating decorations but something goes wrong in rendering and I go into an infinite loop on both peers. LMK if you see something obviously wrong or just wait and I'll fix it.