Shared definitions cannot depend on each other circularly
The message
MARKLESS_SHARED_DEFINITION_CYCLE: Cannot create shared definition cycle "<cycleSource>".
shared() instances are created from graph context during initial render and resume. A cycle would require one shared instance before its own dependency graph can be created.
Break the shared() dependency cycle by passing plain data between definitions or by moving the shared read into an event method that runs after instance creation.
https://markless.dev/errors/MARKLESS_SHARED_DEFINITION_CYCLEWords in angle brackets change from case to case.
Why
shared() instances are created from graph context during initial render and resume. A cycle would require one shared instance before its own dependency graph can be created.
Fix
Break the shared() dependency cycle by passing plain data between definitions or by moving the shared read into an event method that runs after instance creation.