This repository was archived by the owner on Jan 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,12 @@ public function assets(): void
98
98
99
99
$ key = md5 ($ html );
100
100
101
- \Livewire \store ($ this ->context ['__livewire ' ])->push ('assets ' , $ html , $ key );
101
+ if (in_array ($ key , \Livewire \Features \SupportScriptsAndAssets \SupportScriptsAndAssets::$ alreadyRunAssetKeys )) {
102
+ // Skip it...
103
+ } else {
104
+ \Livewire \Features \SupportScriptsAndAssets \SupportScriptsAndAssets::$ alreadyRunAssetKeys [] = $ key ;
105
+ \Livewire \store ($ this ->context ['__livewire ' ])->push ('assets ' , $ html , $ key );
106
+ }
102
107
}
103
108
104
109
/**
@@ -112,11 +117,6 @@ public function script(): void
112
117
113
118
$ key = md5 ($ html );
114
119
115
- if (in_array ($ key , \Livewire \Features \SupportScriptsAndAssets \SupportScriptsAndAssets::$ alreadyRunAssetKeys )) {
116
- // Skip it...
117
- } else {
118
- \Livewire \Features \SupportScriptsAndAssets \SupportScriptsAndAssets::$ alreadyRunAssetKeys [] = $ key ;
119
- \Livewire \store ($ this ->context ['__livewire ' ])->push ('scripts ' , $ html , $ key );
120
- }
120
+ \Livewire \store ($ this ->context ['__livewire ' ])->push ('scripts ' , $ html , $ key );
121
121
}
122
122
}
You can’t perform that action at this time.
0 commit comments