Replies: 1 comment 1 reply
-
The thing with per-component data-fetching is that they can't be done efficiently or magically without changing Svelte's internals. Given this snippet: {#if show}
This is my component: <MyComponent {someProp} />
{/if} What would happen when Likewise, how would SSR work? Svelte SSR is currently synchronous, so we would need the data prior to rendering that component. But we'd also need to render it first to know what |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pretty much the title. So I'd like to create shadow endpoints for
_Component.svelte
which are not page endpoints.Example: A
_ShowDetailModal.svelte
is a component which is shown on a page but is not a dedicated endpoint. Can this component have also a dedicated shadow endpoint which is fetched automagically when the component is mounted?Beta Was this translation helpful? Give feedback.
All reactions