Stuck with reactivity not working
Gpt, claude, meta, asked everywhere. Seems there isnt a solid response why this snippet isnt working.
Context: props.mykey is a changing value. When the value matches some key at the redis database the template should show that redis value. The function await read_redis_key(key) work and logs line 50 and line 51 show the expected result.
However, on the template this snippet is showing up as empty (undefined)
3 Replies
LINE 6x show 'undefined' always, despite lines 50 and 51 show the proper result.
update - what solved the issue for me was changing the watch to:
that only using instead of (only for the template tho)
You should not use
.value
inside a template. That is how vuejs works. So, <div>{{ my_redis_value.value }}</div>
should be <div>{{ my_redis_value }}</div>
That is ABCbruh started yesterday with the framework chill - its just another js frmk