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

Any way to expose an array of react elements? #45

Open
syllith opened this issue Mar 17, 2022 · 1 comment
Open

Any way to expose an array of react elements? #45

syllith opened this issue Mar 17, 2022 · 1 comment

Comments

@syllith
Copy link

syllith commented Mar 17, 2022

I am trying to input a large JSON file into my worker, process the data, and expose an array of react JSX elements, but I cannot find a way to do this.

@dai-shi
Copy link
Owner

dai-shi commented Mar 17, 2022

The message between man thread and worker thread must be serializable or tranferable objects like ArrayBuffer. I don't think it's possible to serialize JSX elements.

btw, you might be interested in another project of mine: https://github.com/dai-shi/react-worker-components

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