Skip to content

Force personMap Reactivity#1959

Open
lechristianfillon wants to merge 1 commit intocgwire:mainfrom
lechristianfillon:personMapReactivityIssue
Open

Force personMap Reactivity#1959
lechristianfillon wants to merge 1 commit intocgwire:mainfrom
lechristianfillon:personMapReactivityIssue

Conversation

@lechristianfillon
Copy link
Contributor

Problem
After creating a new person, the new person appears correctly in the list of people. However, if you click on the record to open the person's management page, you get a completely blank page.

This problem occurs mainly when the new person is the first one alphabetically.

image image

During this PR, a warning was identified and corrected regarding the validation of person creation in the EditPersonModal.vue page.
image

Solution
The problem stems from the lack of responsiveness when updating the cache.personMap variable. This is a known limitation in Vue 3 for complex objects like Maps. To force responsiveness, a version counter is added each time the Map is modified.

@lechristianfillon
Copy link
Contributor Author

This correction is proposed for the issue :
#1960

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants