1 | import { observable } from "mobx";
|
2 | import { useState } from "react";
|
3 | export function useLocalObservable(initializer, annotations) {
|
4 | return useState(function () { return observable(initializer(), annotations, { autoBind: true }); })[0];
|
5 | }
|
6 | //# sourceMappingURL=useLocalObservable.js.map |
\ | No newline at end of file |