You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-13Lines changed: 3 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,28 +64,18 @@ php artisan view:clear
64
64
Blaze supports all essential features and produces HTML output that is identical to Blade. The focus is on maximizing performance while maintaining compatibility. That said, there are some limitations to be aware of:
65
65
66
66
-**Class-based components** are not supported
67
-
68
-
Class instantiation introduce significant overhead. Blaze only focuses on optimizing anonymous components, which are often used for building design systems and UI libraries. If your component requires complex logic it is likely not a good candidate for Blaze optimization.
69
-
70
-
The `$component` variable, which normally points to the component class instance, will also not be available.
71
-
67
+
-**The `$component` variable** will not be available
72
68
-**View composers / creators / lifecycle events** will not fire
73
-
74
-
TODO
75
-
76
69
-**Auto-injecting `View::share()` variables** is not supported
77
70
78
-
TODO
79
-
80
-
Variables shared via `View::share()` will NOT be injected automatically. You have to access them manually:
71
+
You can still access the data manually via the `$__env` variable:
81
72
82
73
```blade
83
74
{{ $__env->shared('key') }}
84
75
```
85
-
86
76
- **Cross boundary `@aware`** between Blade and Blaze components
87
77
88
-
While `@aware` is supported, you must use Blaze in both parent and child for values to propagate correctly.
78
+
Both parent and child must use Blaze for values to propagate.
0 commit comments