Skip to content

DJJones66/BrainDrive-InfiniteCraft-Community-Plugin

Repository files navigation

Implementation Pattern

  • 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/useState crashes.
  • 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.state and lifecycle methods instead of hooks. If you need hook logic internally, wrap it inside a class that you export.

About

BrainDriveAI Community Plugin: Infinite Craft

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors