[PR #31426] [WIP] Update to disable serwist in dev setup based on feedback #33227

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

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

State: closed
Merged: No


  • Add useEffect hook to unregister existing service workers in development mode
  • Check for serviceWorker support in navigator before attempting unregistration
  • Use Promise.all to properly await all unregistration operations
  • Add error handling with catch block to gracefully handle unregistration failures
  • Log warnings to console for debugging purposes
  • Ensure immediate "disabled in dev" behavior for developers

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

**Original Pull Request:** https://github.com/langgenius/dify/pull/31426 **State:** closed **Merged:** No --- - [x] Add useEffect hook to unregister existing service workers in development mode - [x] Check for serviceWorker support in navigator before attempting unregistration - [x] Use Promise.all to properly await all unregistration operations - [x] Add error handling with catch block to gracefully handle unregistration failures - [x] Log warnings to console for debugging purposes - [x] Ensure immediate "disabled in dev" behavior for developers <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
yindo added the pull-request label 2026-02-21 20:52:54 -05:00
yindo closed this issue 2026-02-21 20:52:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33227