Passing object as parameter causing delay in routing

I tried to pass a object with lengthy data from one page to another page , but when data is more it is taking time to show the next page(routing).

function goToHike(arg) {
var hike = arg.data;
	console.log(hike.lengthdata);
	router.push("editHike", hike.lengthdata);
}

Hi,

the lag is probably not directly related to the [amount of] data you’re passing, but rather with the transition itself and simultaneous drawing of the UI.

A solution is to put a DeferPageSwitch property on your Navigator, something like this:

<Navigator DeferPageSwitch="Preparing">
    ...
</Navigator>

There are ways to freeze only particular pages too. See DeferFreeze and IsFrozen for details.

Hope this helps!