Replies: 1 comment
-
Leptos proper, as you've mentioned, doesn't do anything about web workers one way or the other. For an SSR app you want to manage those manually, or using the leptos_workers crate, or the gloo_workers crate. There's not much we plan to do to build workers into a build tool, but if you come up with a PR I'm happy to review |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When creating a Leptos CSR app built by trunk, it is easy to define web workers: One simply creates multiple bin files - one for the actual app, and one for each worker - and one lib file used for interop between them (e.g. using gloo_workers). The distinction between app and workers is defined inside the
index.html
by trunk-specific attributes. For an example, you might start from here, and replace the app by any Leptos CSR app.When building a full stack Leptos app we can't use trunk, as cargo-leptos is used instead as build tool. Does cargo-leptos support web workers in a similar way?
Beta Was this translation helpful? Give feedback.
All reactions