---
title: "Abdul Samad Ansari (@abdulsamad-ansari) | Hashnode"
description: "I love crafting engaging web experiences and building reliable software. Read the latest articles by Abdul Samad Ansari on Hashnode."
url: "https://hashnode.com/@abdulsamad-ansari"
---

@abdulsamad-ansari

# Abdul Samad Ansari

@abdulsamad-ansari · Mumbai, India · Joined September 2022

I love crafting engaging web experiences and building reliable software

[Website](https://abdulsamad.dev/)

## Comments

[Hi Simo, The hook initially gives null and after that, the state is updated. I'm not sure why you're facing this problem. Please check the useEffect dependencies.](https://hashnode.com/posts/how-to-use-zustands-persist-middleware-in-nextjs/640f4e685c1c3f8f90cb3705/comment/652b1d7e900df10a39260e2e#reply-6534dd88aa602055e82fd9b7)

Reply · Article · Oct 22, 2023 · [How to use Zustand's persist middleware in Next.js](https://hashnode.com/posts/how-to-use-zustands-persist-middleware-in-nextjs/640f4e685c1c3f8f90cb3705)
