You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using BroadCastChannelNetworkAdapter causes repo.find to not resolve, only when another tab runs repo.create it will resolve the initial repo.find. I have not noticed this issue before updating from 1.2.1 to 2.0.0-alpha.22.
Install and run dev server pnpm install && pnpm dev
open http:localhost:3000 in browser X
will use repo.create internally
will add an automerge-url as hash: http:localhost:3000#automerge:...
will add hallo, world to body
open http:localhost:3000#automerge:... in browser Y
will use repo.find internally
🐛 will not resolve handle and cause an empty page
open http:localhost:3000 in browser Y in another tab
will add an automerge-url as hash: http:localhost:3000#automerge:...
will add hallo, world to body
now also the tab of 3. will be resolved and will show hallo, world
I will remove BroadCastChannelNetworkAdapter in my personal project, as I simply copy+pasted it from someone else and apparently it's only for testing purposes.
The text was updated successfully, but these errors were encountered:
bigmistqke
added a commit
to bigmistqke/automerge-monaco-repl
that referenced
this issue
Feb 4, 2025
oh awesome. it shouldn't regress! we must be missing a test somewhere. a failing test would be a huge help but if you can write a short script which replicates this from the CLI that would be almost as good.
Using
BroadCastChannelNetworkAdapter
causesrepo.find
to not resolve, only when another tab runsrepo.create
it will resolve the initialrepo.find
. I have not noticed this issue before updating from1.2.1
to2.0.0-alpha.22
.minimal reproduction
Steps to reproduce:
pnpm install && pnpm dev
http:localhost:3000
in browser Xhttp:localhost:3000#automerge:...
hallo, world
to bodyhttp:localhost:3000#automerge:...
in browser Yhttp:localhost:3000
in browser Y in another tabhttp:localhost:3000#automerge:...
hallo, world
to bodyhallo, world
I will remove
BroadCastChannelNetworkAdapter
in my personal project, as I simply copy+pasted it from someone else and apparently it's only for testing purposes.The text was updated successfully, but these errors were encountered: