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

[Vue 3] Dropdowns: Loading choices using RESTful API produces warnings #7025

Closed
zvn2060 opened this issue Sep 27, 2023 · 3 comments · Fixed by #7052
Closed

[Vue 3] Dropdowns: Loading choices using RESTful API produces warnings #7025

zvn2060 opened this issue Sep 27, 2023 · 3 comments · Fixed by #7052
Assignees
Labels
user issue An issue or bug reported by users
Milestone

Comments

@zvn2060
Copy link

zvn2060 commented Sep 27, 2023

Are you requesting a feature, reporting a bug or asking a question?

BUG

What is the current behavior?

When use tagbox or dropdown in dynamic matrix, and set these two question use data from RESTful API as choices

  • If no survey data load, it is fine
  • But if I load previously submitted into the survey, these two element will show below in debug mode and crash in production mode

[Vue warn]: Maximum recursive updates exceeded in component . This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function

What is the expected behavior?

Shouldn't cause page crash

How would you reproduce the current behavior (if this is a bug)?

Provide the test code and the tested page URL (if applicable)

Tested page URL:

CodeSandbox: https://codesandbox.io/p/sandbox/vue-recursive-update-tagbox-vmodel-when-choice-from-api-d3vggf

Specify your

  • browser: Edge / Chrome
  • browser version:
  • surveyjs platform (angular or react or jquery or knockout or vue): vue 3
  • surveyjs version: v1.9.109
@andrewtelnov
Copy link
Member

@zvn2060 I have just checked and it works fine to me. What should I do to reproduce the issue?

Thank you,
Andrew

@zvn2060
Copy link
Author

zvn2060 commented Sep 27, 2023

@andrewtelnov
I mean, if I use the tagbox and dropdown in dynamic matrix
and the choices is fetch from API

When use survey.data to set data,
although the project seems working fine, but DevTool show these warning
image

and If this project in production mode, it will cause the whole page crash and unusable.

@andrewtelnov andrewtelnov changed the title Vue3: Load data into tagbox/dropdown in dynamic matrix with RESTful API choices recursively update value and cause page crash Vue3: Load data into tagbox/dropdown in dynamic matrix with RESTful API choices produce Vue warnings Sep 28, 2023
@andrewtelnov
Copy link
Member

@dk981234 Could you please check this warnings?

Thank you,
Andrew

@andrewtelnov andrewtelnov added the user issue An issue or bug reported by users label Sep 28, 2023
@dk981234 dk981234 linked a pull request Sep 29, 2023 that will close this issue
@RomanTsukanov RomanTsukanov changed the title Vue3: Load data into tagbox/dropdown in dynamic matrix with RESTful API choices produce Vue warnings [Vue 3] Dropdowns: Loading choices using RESTful API produces warnings Oct 3, 2023
@OlgaLarina OlgaLarina added this to the v1.9.111 milestone Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants