s-box and s-grid also have this issue. There is no issue with the rendering or hydration. s-div does not give a warning – but this shouldn’t be necessary, right?
We can confirm that <s-div> shouldn’t be necessary here. <s-stack> , <s-grid> and <s-box> are all valid containers for the table’s filters slot.
This is a timing issue when React 18 mounts the components. <s-table> can check its children just before React applies slot="filters", causing the false warning. The slot is applied immediately afterward, so everything still renders normally.
A fix has been merged but hasn’t reached the current polaris-2.js CDN build yet. There’s nothing you need to change, the warning is safe to ignore. You can use <s-div> temporarily for a clean console, but it isn’t required.