-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
I've believed i found and tracked down an issue in MDCCached
caused by the watch getting out of sync.
Reproduction
- navigate to running the Nuxt UI chat-template
- use one of the labels to start a chat and if first time rendered everything works.
- now start a new chat using the same label
- that chat response from cloudflare will be cached and return almost immediately.
- the result will be the prop
value
anddata
will no longer match. - presents it self as no loading and no rendered visible text in the component.
Resolution
watch(() => props.value, () => {
refresh()
})
updated to include immediate
prevents the values from getting out of sync.
watch(() => props.value, () => {
refresh()
}, { immediate: true })
PR #385
dan-hammond
Metadata
Metadata
Assignees
Labels
No labels