SDI tried this method but it caused my page to fall in a infinite loop due to the useEffect hook re-rendering the page every time the result variable changes and that same variable in used to set the state. any solution to this problem?Comment·Article·Oct 14, 2023·How to use Zustand's persist middleware in Next.js