33-Labs / flowview

https://flowview.app
22 stars 7 forks source link

Storage >> Stored Items >> error when trying to view XXL list of NFTs in an NFT Collection #3

Closed derp-derp-derp closed 9 months ago

derp-derp-derp commented 1 year ago

When clicking on the "Show Detail" button for an account that has a very large number of NFTs (25k+) it crashes the browser.

For example: https://www.flowview.app/account/0x921ea449dffec68a/storage/FlovatarComponentCollection

The browser becomes unresponsive and eventually shows this: Application error: a client-side exception has occurred (see the browser console for more information).

And in the console: RangeError: Maximum call stack size exceeded

Perhaps it could generate aa JSON file of the list behind the scenes and then send the file to the browser to download? Or incrementally populate the textarea as the response is received?

LanfordCai commented 1 year ago

@derp-derp-derp Thank you for your feedback!

I have added a download button, could you have a try?

image
derp-derp-derp commented 1 year ago

It works great! Nicely done. Thank you!

derp-derp-derp commented 9 months ago

@LanfordCai This worked for a long time but is now returning an empty object {} in the example I linked originally: https://www.flowview.app/account/0x921ea449dffec68a/storage/FlovatarComponentCollection

LanfordCai commented 9 months ago

@derp-derp-derp Sorry, this collection is too large now and it can't be returned. You can check the discussion here: https://discord.com/channels/613813861610684416/1186707071899545672

derp-derp-derp commented 9 months ago

@LanfordCai Thank you. That's a bummer.