Skip to content

Electron remote breaks hooks #49

@HZSamir

Description

@HZSamir

Hello,
In an Electron project I am creating the RXDB database through Electron's remote. My use case includes having multiple windows, so ideally, I'd start the DB on the main process and expose it to my renderer process, instead of starting a new database process for each window (leaderElection does not seems to work when it comes to multiple Electron windows, so that's off the table).

However, passing the DB object from main to renderer process seems to break this package. I can still interact with the database normally. It's just that all hooks from rxdb-hooks fail silently.

I have created a small sample project to demonstrate this.
Any insight would be most helpful.
Thank you very much for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions