Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron remote breaks hooks #49

Open
HZSamir opened this issue Mar 8, 2022 · 0 comments
Open

Electron remote breaks hooks #49

HZSamir opened this issue Mar 8, 2022 · 0 comments

Comments

@HZSamir
Copy link

HZSamir commented Mar 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant