---
title: "Comment by Valerii Sedin on \"A Look At React Hooks: useSyncExternalStore\" | Hashnode"
description: "Thank you for the great article with a good example, really helped me understand the hook. However I think there is a small error in your code snippet: getSnaps"
url: "https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/657d2edd87df3eed7ba92682"
---

[Discussion](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98)

Comment [A Look At React Hooks: useSyncExternalStore](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98)

[Valerii Sedin](https://hashnode.com/@Val78)

[Dec 16, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/657d2edd87df3eed7ba92682)

Thank you for the great article with a good example, really helped me understand the hook. However I think there is a small error in your code snippet: getSnapshot function should return data, but in your code here it does not.

[Victoria Lo](https://hashnode.com/@victoria)

[Dec 17, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/657d2edd87df3eed7ba92682#reply-657f0d3103e6d4749ad94203)

Thanks for pointing that out [Valerii Sedin](https://hashnode.com/@Val78)! updated :)
