• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: “getWatchLength” is not defined on the instance but referenced during render. Make sure to declare reactive data vue js properties in the data option

Resolved: “getWatchLength” is not defined on the instance but referenced during render. Make sure to declare reactive data vue js properties in the data option

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’ve a vuex store which stores the state of the length of watched products, I get the length of product in my store but each time I try to {{getWatchlength}} in my code i get “getWatchlength” not defined
This the error I get in my console https://imageshack.com/i/pmlnoX9nj
This my vuex store https://imageshack.com/i/pmP87O5Ij I’m getting the length in my store
This my html code
My script tag
Please, I don’t know what I’m doing wrong

Answer:

Try like following:

If you have better answer, please add a comment about this, thank you!

javascript vue.js vuex
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Convert function is not working with {fn } in SQL Server

24/03/2023

Resolved: Why reference in pointer array doesn’t have data?

24/03/2023

Resolved: EntityFramework creates/runs migrations using parameterless DataContext instance

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.