- BrainDrive loads plugins through Module Federation and provides its own React singleton. If a remote exports hook-driven components, the hook dispatcher often resolves before the shared singleton is ready, leading to
useMemo/useStatecrashes. - To avoid this, mirror the official examples (
BrainDrive-Chat-Plugin,BrainDrive-Page-Context-Service-Bridge-Example-Plugin): expose class-based components only. - Manage state via
this.stateand lifecycle methods instead of hooks. If you need hook logic internally, wrap it inside a class that you export.
DJJones66/BrainDrive-InfiniteCraft-Community-Plugin
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|