robert_
Suggestions for refactoring an async image component?
Hi,
I've written a small async image wrapper for a project I'm working on, and I'm wondering if anybody has any suggestions for helping me refactor my component, so that it doesn't feel so... off...
3 replies
Provider context isn't being executed on SSR website before child component?
Hi,
I'm working on a website for work and I'm attempting to insert a provider as the parent of a child page in InertiaJS,
Welcome.tsx
@/Layouts/SiteLayout.tsx
@/Contexts/Dialog.tsx
The error thrown is 'Dialog' context provider not yet initialized.
, which shouldn't be the case, since Layout wraps the DialogProvider
at the top of the tree, is it because my Welcome
component is being created first? How do I fix this?
Thank you!20 replies
SolidJS: Manually using SSR with v8?
Hi,
I am working on a project which has a PHP back-end, but which has access to a PHP V8 (https://github.com/phpv8/v8js) module, which means I can perform some sort of SSR behind-the-scenes and render the HTML/javascript before the page load- I'm curious if that is at all possible to accomplish using basically just V8 and solidjs in this way?
I mean, I can use
renderToString
to extract the HTML, but I also need to generate and render the javascript which accompanies my page, in order to allow it to be interactive.
Does anybody have any ideas here?
Thanks!15 replies