Replies: 1 comment
-
You can remove the circular json using something like const stringifyCircularJSON = (obj: unknown) => {
const seen = new WeakSet();
return JSON.stringify(obj, (k, v) => {
if (v !== null && typeof v === 'object') {
if (seen.has(v)) return;
seen.add(v);
}
return v;
});
}; but you still end up with massive keys due to the inclusion of the table definition |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When trying to create a generic hook
and calling it like
I get the error
Has anyone been able to handle this?
Beta Was this translation helpful? Give feedback.
All reactions