@toxifiedm or you could quickly fix it by casting the session data to string or the other way around.
Apr 16, 2021
3
Level 1
Why the session is storing key data as a string instead of number - Laravel Inertia Vue
I am currently storing perPage data in the sessions and partially loading the data based on the perPage value selected. The problem is, I have set my prop type as number, but when the perPage data is being stored in the sessions, it is being stored as a string. So it is throwing me an error in the console log.
Invalid prop: type check failed for prop "perPageData". Expected Number with value 10, got String with value "10".
How can I store the value in the sessions as a number and not a string? Help would be really grateful.
Level 34
1 like
Please or to participate in this conversation.