There have been issues reported regarding the browser hanging when logging certain objects/arrays #87 #91. After some investigation it seems the size of the objects/arrays is the problem since console-feed had to iterate through everything to serialize it and the browser faced trouble when rendering them.
I added an option to limit the size of the objects and arrays so that we only serialize the data to a certain point.
I had to also make it transparent that the logged data was truncated and include in the serialized data how many remaining items there are and display the logged data correctly (like the array length).
The implementation is a bit hacky since react-inspector doesn't support limiting and I had to do a few workarounds to render everything.
There have been issues reported regarding the browser hanging when logging certain objects/arrays #87 #91. After some investigation it seems the size of the objects/arrays is the problem since
console-feed
had to iterate through everything to serialize it and the browser faced trouble when rendering them. I added an option to limit the size of the objects and arrays so that we only serialize the data to a certain point. I had to also make it transparent that the logged data was truncated and include in the serialized data how many remaining items there are and display the logged data correctly (like the array length). The implementation is a bit hacky since react-inspector doesn't support limiting and I had to do a few workarounds to render everything.Example of setting the limit to 10: