Recursive object cannot be restored
Closed this issue · 0 comments
sounisi5011 commented
obj-restore.ts does not consider recursive objects.
import createState from '@sounisi5011/metalsmith-netlify-published-date/dist/utils/obj-restore';
const obj = {};
obj.circular = obj;
const state = createState(obj);
// RangeError: Maximum call stack size exceeded