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
The documentation in Merging props is incorrect for server side implementation and also contains insufficient documentation for client side implementation (in react)
Software Info
Laravel 11
Inertia Js 2
React 18.3 (typescript)
Incorrect Code
Here are the 2 types of laravel code given for implementing merging props
The main problem with the above code is incorrect use of paginate() method! Paginate only accepts one argument and it is the $per_page argument. Passing 2 is incorrect and results in an error.
Insufficient documentation
The documentation is not clear on how to actually use the merged props partly due to the above incorrect code and secondly due to not enough documentation for react especially when handling defered props
Description
The documentation in Merging props is incorrect for server side implementation and also contains insufficient documentation for client side implementation (in react)
Software Info
Incorrect Code
Here are the 2 types of laravel code given for implementing merging props
The main problem with the above code is incorrect use of
paginate()
method! Paginate only accepts one argument and it is the$per_page
argument. Passing 2 is incorrect and results in an error.Insufficient documentation
The documentation is not clear on how to actually use the merged props partly due to the above incorrect code and secondly due to not enough documentation for react especially when handling defered props
Here is the code from website
This is unclear and does not really help anyone reading documentation. Improved documentation would be something like this:
Improved version
Tldr
Unable to implement merged props in laravel + inertia js + react webapp due to incorrect and insufficient documentation
The text was updated successfully, but these errors were encountered: