Collections I've built seem to be missing the collection.onRemove() function now. This occurred after refactoring a lot of code in my project, so I'm open to the idea that I messed something up on my end. I've not found any luck finding the issue though, and trying earlier commits also produces the error for some reason.
Here is my database initialization, the schema, and trying to add the onRemove function to the collection. I comment on the area that produces the error:
Very odd, but the code seems to have started working. I'm not sure what changed, but closing this because I guess this could be unrelated to RxDB. Likely an issue on my part.
Collections I've built seem to be missing the
collection.onRemove()
function now. This occurred after refactoring a lot of code in my project, so I'm open to the idea that I messed something up on my end. I've not found any luck finding the issue though, and trying earlier commits also produces the error for some reason.The error I receive is (in browser):
Upon checking in the console, this seems to be the case. The onDestroy method is there, but not the onRemove method.
Here is my database initialization, the schema, and trying to add the
onRemove
function to the collection. I comment on the area that produces the error:My package.json, which might be involved, as I also reproduced this error by trying a previously working commit on my project:
Pull request (did not reproduce due to testing error)