()
| 15 | useEffect(() => { |
| 16 | // Update state if the cookie changes |
| 17 | const handleStorageChange = () => { |
| 18 | const item = Cookies.get(key); |
| 19 | if (item) { |
| 20 | setStoredValue(JSON.parse(item)); |
| 21 | } |
| 22 | }; |
| 23 | |
| 24 | // Add listener for storage changes |
| 25 | window.addEventListener("storage", handleStorageChange); |
nothing calls this directly
no test coverage detected
searching dependent graphs…