Commit 83f0d35
committed
refactor: make
- Switched `user` from a static variable to a computed property to enable reactivity.
This ensures updated user data (e.g. after profile update) is reflected in the NavBar
without requiring a full page refresh.
- Updated prop binding syntax from `:user="user"` to shorthand `:user`.user reactive using computed and simplify prop passing1 parent 09ee1a9 commit 83f0d35
File tree
1 file changed
+4
-3
lines changed- resources/js/components
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments