Open happyleavesaoc opened 10 months ago
Yes, unfortunately, that's the way it works now. The event placement algorithm at some points requires information about the size of DOM elements, which becomes available only when rendering these elements in the browser. Also, various optimizations use deferred computation, which is not performed in SSR.
I'll leave this ticket open so that I can improve SSR support over time (if possible).
Just for reference https://github.com/vkurko/calendar/discussions/162#discussioncomment-6572376
I'm attempting to use
event-calendar
with sveltekit's SSR-only mode, but the server-rendered calendar is not fully initialized. I suspect thatonMount
may be the culprit here.Example component:
Actual output:
Expected output:
(this was generated by turning on CSR in addition to SSR)