Render CalendarRoot
in the same virtualDOM tree to make contexts available
#7657
Labels
CalendarRoot
in the same virtualDOM tree to make contexts available
#7657
Checklist
Is this feature for a specific connector (React/Angular/etc)?
React
Feature Description
We've been mostly using FullCalendar with React, but tried to switch React out to use Preact instead. When switching to Preact, our Calendar completely broke because we render events using
eventContent
that return React components which consume contexts.All these events become rendered in
CalendarRoot
, in a separate virtualDOM tree than the main one, and so no contexts are available - which means navigating withuseNavigate
from react-router, or even accessing Apollo, becomes impossibleThere's no option to change this behaviour, or have FullCalendar render in the same tree, as far as I can tell.
It would be great if we were able to render FullCalendar in the same tree and access contexts within eventContent, or at the very least inject other providers wrapping FullCalendar to make them accessible
The text was updated successfully, but these errors were encountered: