I've tried to push a route with a non primitive data in the extra parameter and got the error UnimplementedError: structured clone of other type. I figured out that Router.push method is using the window.history.pushState method and passes my model there which leads to the error above
It would be nice to mention that the extra parameter has some restrictions
Ps. I've fixed the error by serializing my model to json string and passing this string to the extra parameter
I've tried to push a route with a non primitive data in the
extra
parameter and got the errorUnimplementedError: structured clone of other type
. I figured out thatRouter.push
method is using thewindow.history.pushState
method and passes my model there which leads to the error aboveIt would be nice to mention that the
extra
parameter has some restrictionsPs. I've fixed the error by serializing my model to json string and passing this string to the
extra
parameter