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
In its default configuration, the OptionsResolver treats all props.
487
+
However, if more props are passed than the options defined in the OptionsResolver, an error will be prompted, indicating that one or more options do not exist.
488
+
To avoid this, use the `ignoreUndefined()` method with `true`. See `ignore not defined options`_ for more info.
489
+
490
+
$resolver->setIgnoreUndefined(true);
491
+
492
+
The major drawback of this configuration is that the OptionsResolver will remove every non-defined option when resolving data.
493
+
To maintain props that have not been defined within the OptionsResolver, combine the data from the hook with the resolved data.
494
+
495
+
return $resolver->resolve($data) + $data;
496
+
497
+
482
498
The data returned from ``preMount()`` will be used as the props for mounting.
0 commit comments