MCPcopy
hub / github.com/mobxjs/mobx / ExampleState

Function ExampleState

packages/mobx-react/__tests__/misc.test.tsx:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6test("issue mobx 405", () => {
7 function ExampleState() {
8 // @ts-ignore
9 extendObservable(this, {
10 name: "test",
11 get greetings() {
12 return "Hello my name is " + this.name
13 }
14 })
15 }
16
17 const ExampleView = observer(
18 class T extends React.Component<any, any> {

Callers

nothing calls this directly

Calls 1

extendObservableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…