Commit 4a9a664
Fergus Bisset
fix(behaviours): preserve 'use client' directive in React behaviours build
- Add banner to Vite config to preserve 'use client' directive
- Update examples/nextjs BehavioursLoader with 'use client' directive
- Add comprehensive BEHAVIOURS_ARCHITECTURE.md documentation
- Explains SSR vs Client Component architecture
- Clarifies that BehavioursLoader is ALWAYS a client component
- It enhances SSR HTML after hydration, not during SSR
Fixes 'createContext is not a function' error in Next.js App Router
The directive was being stripped by Vite during build process1 parent 9ab956e commit 4a9a664
File tree
6 files changed
+820
-4
lines changed- config
- dist/src/behaviours
- docs
6 files changed
+820
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
0 commit comments