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

connect.defaults({withRef: true}) doesn't work as documented #197

Open
nelseric opened this issue Jan 25, 2018 · 1 comment
Open

connect.defaults({withRef: true}) doesn't work as documented #197

nelseric opened this issue Jan 25, 2018 · 1 comment

Comments

@nelseric
Copy link

connect.options({withRef: true}) did seem to work, and updated the component in meta in then: callbacks

@ptoussai
Copy link

ptoussai commented Jan 26, 2018

I can confirm that only this works:

connect.options({ withRef: true })(() => ({
    postLogin: credentials => ({
      loginResponse: {
        url: urls.login,
        method: 'POST',
        body: credentials,
        then(value, meta) {
          console.log(meta);
        },
      },
    }),
  }))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants