Elliot_bai
WWasp
•Created by Elliot_bai on 5/30/2025 in #🙋questions
React.StrictMode Causes Duplicate API Requests in Production
React.StrictMode Causes Duplicate API Requests in Production
Problem
All API requests are executed twice in production, causing:
- Duplicate database records
- Double credit deductions for users
- Multiple WebSocket events
This only happens in production, not development.
Root Cause
Wasp generates
app/.wasp/out/web-app/src/index.tsx
with React.StrictMode
enabled in production:
Evidence
Production logs show duplicate requests:POST /operations/create-generated-request
POST /operations/create-generated-request // ← Duplicate
Solution
StrictMode should only be enabled in development:
6 replies
WWasp
•Created by Elliot_bai on 5/21/2025 in #🙋questions
Dynamic SEO Meta Tags with i18n in Wasp?
Currently, the SEO meta information for WASP is statically configured in main.wasp. However, I've integrated internationalization (i18n) into my project. Is there a way to make the meta information change dynamically based on the selected language?
9 replies