volto icon indicating copy to clipboard operation
volto copied to clipboard

When used as folder contents, withQuerystringResults triggers an unneeded network call

Open tiberiuichim opened this issue 2 years ago • 1 comments

https://github.com/plone/volto/blob/92af5ac14730815d925e5d74f3c2d003b1210535/src/components/manage/Blocks/Listing/withQuerystringResults.jsx#L104

Unless the page is different then 0, there's no need to trigger a network fetch, the children are already in the content.

tiberiuichim avatar Jul 13 '22 16:07 tiberiuichim

Assuming that initialPath is the same as that of the content.

tiberiuichim avatar Jul 13 '22 16:07 tiberiuichim