autonomys / auto-drive

Auto Drive is a decentralized content-addressed storage solution built on the Autonomys Network, leveraging its underlying permanent storage layer known as the Autonomys Distributed Storage Network (DSN).
2 stars 1 forks source link

Fix "rendered fewer hooks than expected" error #79

Closed clostao closed 2 weeks ago

clostao commented 2 weeks ago

After implementing pagination and batching for files fetching in #76, there was an error when TablePaginator provoked a refetch of file list (by updating either pageSize or currentPage). What happened is that a change of state in the child provoked an update in the parent's state for breaking this loop, it's needed an intermediary state setRootObjectMetadata(null)

netlify[bot] commented 2 weeks ago

Deploy Preview for auto-drive-demo ready!

Name Link
Latest commit 737ab74de323c70a248e31e65169ae278bd41ffb
Latest deploy log https://app.netlify.com/sites/auto-drive-demo/deploys/6723a30329718c00084e09d5
Deploy Preview https://deploy-preview-79--auto-drive-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.