File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -373,13 +373,18 @@ public function resolveAlways(array $props): array
373373 public function resolvePropertyInstances (array $ props , Request $ request , ?string $ parentKey = null ): array
374374 {
375375 foreach ($ props as $ key => $ value ) {
376+ if ($ value instanceof ScrollProp) {
377+ $ value ->configureMergeDirection ($ request );
378+ }
379+
376380 $ resolveViaApp = collect ([
377381 Closure::class,
378382 LazyProp::class,
379383 OptionalProp::class,
380384 DeferProp::class,
381385 AlwaysProp::class,
382386 MergeProp::class,
387+ ScrollProp::class,
383388 ])->first (fn ($ class ) => $ value instanceof $ class );
384389
385390 if ($ resolveViaApp ) {
@@ -586,7 +591,6 @@ public function resolveScrollProps(Request $request): array
586591 {
587592 $ scrollProps = $ this ->getMergePropsForRequest ($ request )
588593 ->filter (fn (Mergeable $ prop ) => $ prop instanceof ScrollProp)
589- ->each (fn (ScrollProp $ prop ) => $ prop ->configureMergeDirection ($ request ))
590594 ->mapWithKeys (fn (ScrollProp $ prop , string $ key ) => [$ key => $ prop ->meta ()]);
591595
592596 return $ scrollProps ->isNotEmpty () ? ['scrollProps ' => $ scrollProps ->toArray ()] : [];
You can’t perform that action at this time.
0 commit comments