kaiserkais's avatar

inertia navigation take too long

hi guys im using inertia with react,

this problem is new, never happened before.

when i navigate in some of my pages it is very slow

and when i check the network tab in the console, i see that the resource for the get request is too big like 5MB and it take 42 seconds

its like it take too long to get the data from mysql, but not in all pages

please check the image

https://ibb.co/2Pwj4K4

the first days the speed was very normal

the crazy thing the problem happened only in production server in the local server no problem happened.

0 likes
2 replies
jrafael29's avatar

Were you able to solve this problem? im having the same

JussiMannisto's avatar

If the file is that big, you're trying to pass way too much data in the page props. The issue is not with Inertia, but with your backend code.

If you have an issue, create your own thread and show what you're doing in the controller.

Please or to participate in this conversation.