fix: key the navigator provider to unmount on item id changes (#2425)
This commit is contained in:
parent
4a83723dbf
commit
6a7796fc87
@ -26,7 +26,7 @@ export default function Item ({ ssrData }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CommentsNavigatorProvider>
|
<CommentsNavigatorProvider key={item.id}>
|
||||||
<Layout sub={sub} item={item}>
|
<Layout sub={sub} item={item}>
|
||||||
<ItemFull item={item} fetchMoreComments={fetchMoreComments} />
|
<ItemFull item={item} fetchMoreComments={fetchMoreComments} />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user