Skip to content

Commit

Permalink
example: move created
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Nov 25, 2023
1 parent c055427 commit 72b97f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const Test = {

const List = {
name: 'my-list',
async created () {
this.state.items = await getItems()
},
state: {
items: [
{ id: 1, title: 'List item #1' }
Expand All @@ -46,6 +43,9 @@ const List = {
<button>Click me</button>
</div>
`,
async created () {
this.state.items = await getItems()
},
setup ({ parent, query, computed, state }) {
computed('len', ({ state }) => state.items.length)

Expand Down

0 comments on commit 72b97f4

Please sign in to comment.