alibaba/fish-redux

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

Closed this issue · 5 comments

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?

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

你解决了吗?

@wangemng
No
I migrate to bloc state management

loginstate 管理?

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.