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
When fully loading f.e. contacts page, Vue shows prop validation errors as the links inside contacts prop is object because of it, and Pagination component expects it to be an array.
Thanks again. Cheers!
The text was updated successfully, but these errors were encountered:
I was using JSON_FORCE_OBJECT for situations where there are no props, json_encode() results in an empty array ([]), but Inertia expects an object ({}). The problem is JSON_FORCE_OBJECT doesn't only apply to the top level, but all nested data, which is not what we want. Simply casting the $props array to an object solves this.
Hey 👋 Awesome project and thanks for open-sourcing it!
I was just wondering, is there a particular reason for using
JSON_FORCE_OBJECT
flag onjson_encode()
in the blade template?When fully loading f.e. contacts page, Vue shows prop validation errors as the
links
insidecontacts
prop is object because of it, and Pagination component expects it to be an array.Thanks again. Cheers!
The text was updated successfully, but these errors were encountered: