Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routerRedux.push后会多次触发subscriptions #152

Closed
yanthink opened this issue Oct 12, 2016 · 4 comments
Closed

routerRedux.push后会多次触发subscriptions #152

yanthink opened this issue Oct 12, 2016 · 4 comments
Labels

Comments

@yanthink
Copy link

routerRedux.push后会多次触发subscriptions, 导致subscriptions里面的request会被多次执行

@sorrycc
Copy link
Member

sorrycc commented Oct 12, 2016

subscriptions 怎么写的?

@yanthink
Copy link
Author

@sorrycc

setup({ dispatch, history }) {
      history.listen(location => {
        if (location.pathname === '/loan-users') {
          dispatch({
            type: 'query',
            payload: location.query,
          });
        }
      });
    },

@yanthink
Copy link
Author

@sorrycc
我model用dynamic load后就会出现这种情况, 不用dynamic load就不会。

@sorrycc
Copy link
Member

sorrycc commented Oct 12, 2016

感觉是 bug,明天我定位下。

@sorrycc sorrycc added the bug label Oct 13, 2016
This was referenced Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants