signaldb icon indicating copy to clipboard operation
signaldb copied to clipboard

sync(registerRemoteChange): still getting onChange as first argument after updating to v0.21.2

Open Cmacu opened this issue 1 year ago • 1 comments

The following code returns the onChange as first argument:

...
registerRemoteChange: (collection, onChange) => {
    console.error('sync registerRemoteChange', collection, onChange)
    socket.connection.on(`sync-${collection.name}`, onChange)
}

Screenshot 2024-09-27 at 5 16 39 PM

And I triple checked the version to make sure. Even the types show up as expected:

Screenshot 2024-09-27 at 5 23 47 PM

Maybe there is some issue with the build or deployment script?

Cmacu avatar Sep 28 '24 00:09 Cmacu

I've just checked the code that is in the npm package and it seems to be correct: image

maxnowack avatar Sep 28 '24 19:09 maxnowack

This should be resolved in the meantime if there was an issue in v0.21.2. Please reopen if there is still something wrong 🙂

maxnowack avatar Nov 05 '24 07:11 maxnowack