You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inside the useIndexResourceState the allResourcesSelected will always return false regardless if all are selected or not. In the default example for this component, the only use of allResourcesSelected is for the prop selectedItemsCount which also is displaying that it doesn't work by never returning "All".
Summary
inside the useIndexResourceState the allResourcesSelected will always return false regardless if all are selected or not. In the default example for this component, the only use of allResourcesSelected is for the prop selectedItemsCount which also is displaying that it doesn't work by never returning "All".
It will always return just the selectedResources.length.
Expected behavior
It should return true if all of the available items in selectedResources is selected.
Actual behavior
Steps to reproduce
https://codesandbox.io/p/sandbox/sxf46p
Are you using React components?
Yes
Polaris version number
13.9.0
Browser
chrome
Device
windows
The text was updated successfully, but these errors were encountered: