Firstly, thank you for making mande and continuing to support it 🙂 this is the best fetch library available. I really appreciate it.
My proposal here is to add a config option for dev's to pass a replacer function to the JSON.stringify that is used when making API calls. This would really help when resolving cyclic reference issues.
Firstly, thank you for making mande and continuing to support it 🙂 this is the best fetch library available. I really appreciate it.
My proposal here is to add a config option for dev's to pass a replacer function to the
JSON.stringify
that is used when making API calls. This would really help when resolving cyclic reference issues.Example inspired from MDN:
Maybe we can set it during the mande initialization, so it would look something like: