-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing is incorrect with vercel edge runtime #242
Comments
So.. i found the issue. In this code: export const isPlainObject = (
payload: any
): payload is { [key: string]: any } => {
if (typeof payload !== 'object' || payload === null) return false;
if (payload === Object.prototype) return false;
if (Object.getPrototypeOf(payload) === null) return true;
return (
payload.constructor === Object &&
Object.getPrototypeOf(payload) === Object.prototype
);
};
I tested it locally by evaluating the code with the |
Nice find! This check seems to be from the very beginnings of SuperJSON: c617bc7#diff-4c1f145257b72d7f61ed609a0604c966c68010147841b7d45f164c8ef3f8360aR15-R16 Let's try to remove the |
sure! |
cc @KATT |
NextJS Example:
In this example the fields with meta value
undefined
are set asnull
:Switching the runtime to
nodejs
results instead in a correct output:The text was updated successfully, but these errors were encountered: