Vue mounting error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Reproduce the first-open failure with the shown v-dialog and seam-device-details example, then inspect the mounting timing between the Vue modal and the React component. Done means the component renders correctly when the modal is opened the first time, without the v-if and $nextTick workaround, and the React invariant 409 error is gone.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
- seamapi/react v1.41.0
- Device IDs: 598a5a28-e314-4864-9b5d-3aba353b8587, 86483ac1-ba59-452c-8c0e-60d611928d73
Some components that are displayed correctly on our app fail to be displayed in a modal (In the default slot of a v-dialog https://v2.vuetifyjs.com/en/api/v-dialog/ ) with the following error in console:
https://legacy.reactjs.org/docs/error-decoder.html/?invariant=409
This error appears when the modal is opened.
If I close the modal and re-open it, the component is displayed correctly the second time.
Code:
<v-dialog :value="!!value">
<seam-device-details
:client-session-token="token"
:device-id="value"
/>
<v-dialog>
Workaround
The workaround we found for now is to wrap the seam component in an element conditionally rendered (v-if) on an internal ready variable that is set to true soon after the modal is rendered.
The following code does not work if we remove the delay this.$nextTick and set the this.ready variable immediately.
This is not super clean but it works, so I removed the “Blocking” tag on this issue
watch: {
value (val) {
if (val && !this.ready) this.$nextTick(() => { this.ready = true })
},
},
value is the prop set to the deviceId to enable the modal, and set to null to close the modal
- Lingua principale
- TypeScript
- Stelle
- 9
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di seamapi/react
-
bug seam components
Difficoltà 3/5 1-2 giorni Idoneità per principianti 20/100
-
bug seam components
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
seam components
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
seam components
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
seam components
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
Tutte le issue di seamapi/react
Issue simili
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Crush Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
ElementsProject/cln-application#167 · 1 commento · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Quantco/pnpm-licenses#17 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100