I am getting a unusual issue where common part of objects got overridden by second objects common part.
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
I am getting a unusual issue, can you clarify this thing so that I will not practice this thing again.
**DATA1**: {
id: '17327357',
status: 'ok',
version: {
id: '662d9c82-3aaf-4dc0-a661-7af13dd8ca33-#386',
name: '#386',
versionId: **'613f365acb6e6f00197c2581'**
}}
DATA2: {
id: '17327359',
status: 'ok',
version: {
id: '662d9c82-3aaf-4dc0-a661-7af13dd8ca33-#386',
name: '#386',
versionId: '613f365bcb6e6f00197c2587'
}}
Above both data are getting passed to UI back to back.
Above data it passing correctly from backend, but in query response in ui side the common part i.e version {} block got interchanging. because **version.id** is same for both json objects. I don't know what graphql do internally.
But response i get in UI for first app is like this overridden by second app version
**DATA1**: {
id: '17327357',
status: 'ok',
version: {
id: '662d9c82-3aaf-4dc0-a661-7af13dd8ca33-#386',
name: '#386',
versionId: **'613f365bcb6e6f00197c2587'**
}}
Contributor guide
Assessment
This issue has not been assessed yet.