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

How to redo this with Comlink? #2

Open
sdykae opened this issue Dec 29, 2019 · 1 comment
Open

How to redo this with Comlink? #2

sdykae opened this issue Dec 29, 2019 · 1 comment

Comments

@sdykae
Copy link

sdykae commented Dec 29, 2019

Since comlink achive to do the same with redux in a friendly way. I want to do the same with the preact dom, How can I achive this ;c. I'm unable to understand the requirements for this. Can you guide me with the very basic?

Do I need undom?

@marvinhagemeister
Copy link

You need to chose pretty much the same approach as in this repo. Preact uses a subset of the DOM-API which needs to be mocked inside your worker. These mocks will need to pass a message to the main thread and the main thread will need something that responds to those messages and apply it to the DOM.

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

2 participants