From 438389f5aac695bc0e5f2b98847c680d5bd79c12 Mon Sep 17 00:00:00 2001 From: Jawhar B Date: Wed, 26 Sep 2018 10:51:51 +0200 Subject: [PATCH] Updating `configure` according to the MobX docs According to the latest react course and the [docs](https://github.com/mobxjs/mobx/blob/master/CHANGELOG.md#510--440) of mobx, `configure({ enforceActions: true })` has been changed to be `configure({ enforceActions: 'observed' })` it takes multi kind of values depending to the use case But our use case case is the `'observed'` one. --- documentation/homework/W4-homework.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/homework/W4-homework.md b/documentation/homework/W4-homework.md index 37a6153a17..5024d82bb5 100644 --- a/documentation/homework/W4-homework.md +++ b/documentation/homework/W4-homework.md @@ -14,7 +14,7 @@ To use decorators (the `@` syntax) with `create-react-app`, follow this [tutoria _You must have MobX strict mode enabled. Any homework submitted without strict mode on will be rejected. You enable strict mode like this:_ - configure({ enforceActions: true }) + configure({ enforceActions: 'observed' }) ## Scoring