Skip to content

Commit

Permalink
Merge branch 'canary' into 18563-etag
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Nov 10, 2020
2 parents 7e13c24 + d5daa06 commit 20ef404
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/with-mobx/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"presets": ["next/babel"],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/plugin-proposal-class-properties", { "loose": true }]
["@babel/plugin-proposal-class-properties", { "loose": false }]
]
}
4 changes: 2 additions & 2 deletions examples/with-mobx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "next start"
},
"dependencies": {
"mobx": "^5.15.4",
"mobx-react": "^6.2.2",
"mobx": "^6.0.1",
"mobx-react": "^7.0.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
Expand Down
10 changes: 7 additions & 3 deletions examples/with-mobx/store.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { action, observable, computed, runInAction } from 'mobx'
import { useStaticRendering } from 'mobx-react'
import { action, observable, computed, runInAction, makeObservable } from 'mobx'
import { enableStaticRendering } from 'mobx-react'
import { useMemo } from 'react'
// eslint-disable-next-line react-hooks/rules-of-hooks
useStaticRendering(typeof window === 'undefined')
enableStaticRendering(typeof window === 'undefined')

let store

class Store {
constructor() {
makeObservable(this)
}

@observable lastUpdate = 0
@observable light = false

Expand Down

0 comments on commit 20ef404

Please sign in to comment.