Skip to content

Commit c7879af

Browse files
authored
Update MobXEg.js
1 parent b90429f commit c7879af

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/lib-utilize/MobXEg.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ import { DIV } from 'Styled-Comps/ThemedComponents';
88
/* Directly import and call Doubler store like this */
99
// const DBLR = new Doubler();
1010

11+
/* In case Strict mode is enabled, observable value would have to been changed by explicitly calling the action, eg ->
12+
13+
isAdmin : observable
14+
15+
loginUserService({ email, password }).then(
16+
action((response) => { // import { action } from 'mobx'
17+
this.loggedIn = true;
18+
})
19+
);
20+
*/
21+
1122
const MobXEg = () => {
1223
/* How to call a computed mobX fn, calling this fn as such didnt update the state */
1324
// console.log(' rteur dbl value ',DBLR.double);

0 commit comments

Comments
 (0)