fix: key the navigator provider to unmount on item id changes (#2425)

This commit is contained in:
soxa 2025-08-17 07:30:21 +02:00 committed by GitHub
parent 4a83723dbf
commit 6a7796fc87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ export default function Item ({ ssrData }) {
}
return (
<CommentsNavigatorProvider>
<CommentsNavigatorProvider key={item.id}>
<Layout sub={sub} item={item}>
<ItemFull item={item} fetchMoreComments={fetchMoreComments} />
</Layout>