Skip to content

Commit ff428c0

Browse files
committed
fix: stale mapped getter evenOrOdd (cypress-io#6)
Current mapped vuex getters within components become stale. To have a working Counter example, the computed mapped `evenOrOdd` is accessed directly via `$store`. This will be changed back once the stale mapped getter issue (WIP) is fixed.
1 parent 321ba88 commit ff428c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Counter.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div id="app">
3-
Clicked: {{ $store.state.count }} times, count is {{ evenOrOdd }}.
2+
<div>
3+
Clicked: {{ $store.state.count }} times, count is {{ $store.getters.evenOrOdd }}.
44
<button @click="increment">+</button>
55
<button @click="decrement">-</button>
66
<button @click="incrementIfOdd">Increment if odd</button>

0 commit comments

Comments
 (0)