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

Month picker loses default selection #230

Closed
openscript opened this issue Jan 3, 2025 · 1 comment · Fixed by #291
Closed

Month picker loses default selection #230

openscript opened this issue Jan 3, 2025 · 1 comment · Fixed by #291
Assignees
Milestone

Comments

@openscript
Copy link
Member

When iterate over the period selection step with the month picker it loses its default value. The console has an overflow exception of using useEffect.

Screencast.From.2025-01-03.10-48-15.mp4
Error
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
MonthPicker<@http://localhost:3001/node_modules/.vite/deps/@mantine_dates.js?v=c13c6543:3074:25
MonthPicker@http://localhost:3001/@fs/workspaces/quassel/libs/ui/dist/index.js:240:21
div
_Box<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:3817:3
Stack<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:26564:25
div
_Box<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:3817:3
Flex<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:11795:25
div
_Box<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:3817:3
Stack<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:26564:25
form
PeriodForm@http://localhost:3001/src/components/questionnaire/PeriodForm.tsx:28:27
QuestionnairePeriod@http://localhost:3001/src/routes/_auth/questionnaire/_questionnaire/$id/period.tsx:30:13
MatchInnerImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4382:53
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
MatchImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4325:43
OutletImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4468:18
component
MatchInnerImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4382:53
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
MatchImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4325:43
OutletImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4468:18
div
_Box<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:3817:3
Container<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:17483:25
QuestionnaireLayout
MatchInnerImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4382:53
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
MatchImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4325:43
OutletImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4468:18
component
MatchInnerImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4382:53
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
MatchImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4325:43
Suspense
OutletImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4468:18
main
_Box<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:3817:3
AppShellMain<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:12874:25
div
_Box<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:3817:3
Provider@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:935:20
AppShell<@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:13306:25
Root@http://localhost:3001/src/routes/__root.tsx:50:13
MatchInnerImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4382:53
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
SafeFragment@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4303:71
MatchImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:4325:43
CatchBoundaryImpl@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:1799:5
CatchBoundary@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:1779:26
MatchesInner@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:5013:33
Suspense
Matches@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:5003:18
RouterContextProvider@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:5102:31
RouterProvider@http://localhost:3001/node_modules/.vite/deps/chunk-VEND2W6W.js?v=c13c6543:5122:24
MantineThemeProvider@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:2172:30
MantineProvider@http://localhost:3001/node_modules/.vite/deps/chunk-7DNPNH6Z.js?v=c13c6543:2674:25
DatesProvider@http://localhost:3001/node_modules/.vite/deps/@mantine_dates.js?v=c13c6543:421:23
ThemeProvider@http://localhost:3001/@fs/workspaces/quassel/libs/ui/dist/index.js:48:23
QueryClientProvider@http://localhost:3001/node_modules/.vite/deps/chunk-Z4NSOJST.js?v=c13c6543:2800:27 88 suppress-nextjs-warning.ts:15:20
@openscript openscript added the bug label Jan 3, 2025
@openscript openscript added this to the Publication milestone Jan 3, 2025
@stampaaaron
Copy link
Contributor

mantinedev/mantine#7336

@openscript openscript removed the bug label Jan 20, 2025
@openscript openscript linked a pull request Jan 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants