Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: DateRange defaultValue not taken into account for prerendered pages #2576

Open
andreas-horde opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working to-review Evidence team to review

Comments

@andreas-horde
Copy link

andreas-horde commented Sep 24, 2024

Describe the bug

When using a preset range as a defaultValue, the page renders without the filter on first load when using "npm run build". It works fine with "npm run dev".

Steps to Reproduce

Create a DateRange input with defaultValue={'Last 7 Days'}. Use the filter in the query, observe output on first page load after npm run build.

Logs

No response

System Info

No response

Severity

serious, but I can work around it

Additional Information, or Workarounds

No response

@andreas-horde andreas-horde added bug Something isn't working to-review Evidence team to review labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to-review Evidence team to review
Projects
None yet
Development

No branches or pull requests

1 participant