Я просто обновил свое полностью функциональное приложение для реагирования на сокращение до версии v4, но теперь я получаю следующую ошибку:
Ошибка: Ошибка: Ошибка: Ошибка: вы не можете вызвать store.getState(), пока выполняется редуктор. Редуктор уже получил состояние в качестве аргумента. Передайте его вниз от верхнего редуктора вместо того, чтобы читать его из магазина.
Я подозреваю, что проблема заключается в том, что у меня есть множество компонентов внутри других, каждый со своим собственным connect(mapStateToProps, mapDispatchToProps)(Component)
и я полагаю, что это не правильный способ его реализации, хотя я не уверен, что это правильный способ Это.
Любое направление очень ценится!
Трассировки стека:
This error is located at:
in Connect(SideBarApp) (at SceneView.js:9)
in SceneView (at createTabNavigator.js:10)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in ResourceSavingScene (at createBottomTabNavigator.js:86)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in TabNavigationView (at createTabNavigator.js:127)
in NavigationView (at createNavigator.js:59)
in Navigator (at createNavigationContainer.js:376)
in NavigationContainer (at SceneView.js:9)
in SceneView (at SwitchView.js:12)
in SwitchView (at createNavigator.js:59)
in Navigator (at createNavigationContainer.js:376)
in NavigationContainer (at AppNavigator.js:36)
in App (created by Connect(App))
in Connect(App) (at index.ios.js:23)
in Provider (at index.ios.js:22)
in TheNewsApp (at renderApplication.js:32)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in AppContainer (at renderApplication.js:31)
This error is located at:
in NavigationContainer (at SceneView.js:9)
in SceneView (at SwitchView.js:12)
in SwitchView (at createNavigator.js:59)
in Navigator (at createNavigationContainer.js:376)
in NavigationContainer (at AppNavigator.js:36)
in App (created by Connect(App))
in Connect(App) (at index.ios.js:23)
in Provider (at index.ios.js:22)
in TheNewsApp (at renderApplication.js:32)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in AppContainer (at renderApplication.js:31)
This error is located at:
in NavigationContainer (at AppNavigator.js:36)
in App (created by Connect(App))
in Connect(App) (at index.ios.js:23)
in Provider (at index.ios.js:22)
in TheNewsApp (at renderApplication.js:32)
in RCTView (at View.js:43)
in RCTView (at View.js:43)
in AppContainer (at renderApplication.js:31)
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:79579:24
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:78896:56
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:79019:28
Connect(SideBarApp)@http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:78969:29
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:20826:32
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:22393:35
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:24922:27
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:24955:47
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:24988:21
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25549:23
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25481:30
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25456:20
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25362:26
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25224:28
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:20681:23
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:2380:37
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:80901:27
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:80517:24
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:80470:44
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:79810:38
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:79628:38
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:112247:19
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:112199:44
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:8818:16
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:8919:27
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:8162:17
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:8198:19
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:8417:33
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7741:32
http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7580:34
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7721:15
[email protected]://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7579:21
[email protected][native code]
[email protected][native code]