{"version":"1.0","type":"rich","title":"Hook that stores a state value as a JSON string to prevent render updates when an object value is mutated but doesn't change.","description":"This example demonstrates a React hook that stores a state value as a JSON string, preventing unnecessary render updates when an object is mutated but its content remains unchanged. It shows how `useState`, `useMemo`, and `useCallback` work together to serialize the initial state via `JSON.stringify`, parse it back with `JSON.parse` inside a memoized value, and provide a setter that stringifies the next value before updating state. The hook uses TypeScript generics for type safety, and the behavior is visible in the code, though it does not display any data visualization or rendering logic.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-7f950a0c5c6536eb3deaa95568012c8b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}