signaldb
signaldb copied to clipboard
sync(registerRemoteChange): still getting onChange as first argument after updating to v0.21.2
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)
}
And I triple checked the version to make sure. Even the types show up as expected:
Maybe there is some issue with the build or deployment script?
I've just checked the code that is in the npm package and it seems to be correct:
This should be resolved in the meantime if there was an issue in v0.21.2. Please reopen if there is still something wrong 🙂