[PR #31163] fix(web): Zustand testing best practices and state read optimization #33117

Closed
opened 2026-02-21 20:52:41 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/31163

State: closed
Merged: Yes


Summary

  • Add Zustand store testing best practices to frontend-testing skill
  • Refactor tests to use real stores with global mock
  • Defer state reads to usage point for callback-only subscriptions to avoid re-render

Closes #31161
Closes #31162

Test plan

  • Type check passes
  • Lint passes
  • Existing tests pass
**Original Pull Request:** https://github.com/langgenius/dify/pull/31163 **State:** closed **Merged:** Yes --- ## Summary - Add Zustand store testing best practices to frontend-testing skill - Refactor tests to use real stores with global mock - Defer state reads to usage point for callback-only subscriptions to avoid re-render Closes #31161 Closes #31162 ## Test plan - [x] Type check passes - [x] Lint passes - [x] Existing tests pass
yindo added the pull-request label 2026-02-21 20:52:41 -05:00
yindo closed this issue 2026-02-21 20:52:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33117