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
Currently I have to do a workaround and copy the parameters over to a normal object before serialization. This works, but having a normal object with named parameters would be cleaner.
For backwards compatibility, since some people are probably assuming ctx.params is an array, maybe there needs to be an additional parameter on ctx that contains an object with only the named parameters, like ctx.namedParams, that is safe to be serialized?
The text was updated successfully, but these errors were encountered:
The params are not serializable with
JSON.stringify()
, because they get turned into an empty array and the object properties are lost.For example, if I have named parameters, like so:
then the result in the console will be like this:
Currently I have to do a workaround and copy the parameters over to a normal object before serialization. This works, but having a normal object with named parameters would be cleaner.
For backwards compatibility, since some people are probably assuming
ctx.params
is an array, maybe there needs to be an additional parameter onctx
that contains an object with only the named parameters, likectx.namedParams
, that is safe to be serialized?The text was updated successfully, but these errors were encountered: