alibaba / fish-redux

An assembled flutter application framework.
https://github.com/alibaba/fish-redux
Apache License 2.0
7.33k stars 843 forks source link

"The method 'call' was called on null" error when dispatch component action #692

Closed uzuki-P closed 4 years ago

uzuki-P commented 4 years ago

I have LoginPage that have InputFieldComponent dependencies. image

This is the PassInputConnector image

On InputFieldComponent there's an IconButton that dispatch an action this action just call a simple reducer that flip a bool state (enable/disable obscureText) image

The Problem When I press the IconButton, I got this error. image

Am I using the wrong connector? Or there's something that I miss?

wangemng commented 4 years ago

我也遇到这个问题了 新建的 component 调用 dispatch 使用本类的 action 就报这个错误 怎么解决呀?

wangemng commented 4 years ago

你解决了吗?

uzuki-P commented 4 years ago

@wangemng No I migrate to bloc state management

wangemng commented 4 years ago

loginstate 管理?

uzuki-P commented 4 years ago

I didn't use fish-redux and go full Bloc I didn't understand any chinese language so it's really hard for me to search for error. So I decided to change my state management instead.