Closed JaneSjs closed 1 month ago
I got the same warning when running the https://github.com/surveyjs/surveyjs-blazor demo.
console.js:273 Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
at SurveyQuestionRatingDropdown (webpack://surveyjs-blazor/./node_modules/survey-react-ui/survey-react-ui.js?:16753:23)
at div
at div
at SurveyQuestion (webpack://surveyjs-blazor/./node_modules/survey-react-ui/survey-react-ui.js?:17393:28)
at div
at SurveyRowElement (webpack://surveyjs-blazor/./node_modules/survey-react-ui/survey-react-ui.js?:15498:28)
at div
at SurveyRow (webpack://surveyjs-blazor/./node_modules/survey-react-ui/survey-react-ui.js?:21301:28)
at div
at SurveyPage (webpack://surveyjs-blazor/./node_modules/survey-react-ui/survey-react-ui.js?:16113:23)
at div
at div
at div
at div
at form
at div
at div
at Survey (webpack://surveyjs-blazor/./node_modules/survey-react-ui/survey-react-ui.js?:16991:28)
at SurveyRunner (webpack://surveyjs-blazor/./ClientAssets/TypeScript/components/Survey.tsx?:20:72)
Error happens on changing renderAs property from "default" to "dropdown" if the survey width is small. There is no synchronization between our ResizeObserver and react rendering state.
Thank you, Andrew
To reproduce the issue, run the surveyjs-nextjs demo and select Form Library. Warnings appear in a console.