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

Env Mapping is missing a value for a PUT? #46

Open
spacesuitdiver opened this issue Apr 1, 2019 · 0 comments
Open

Env Mapping is missing a value for a PUT? #46

spacesuitdiver opened this issue Apr 1, 2019 · 0 comments

Comments

@spacesuitdiver
Copy link

spacesuitdiver commented Apr 1, 2019

Just diving into testing sagas so bear with me if this is obvious.

My understanding is collectPuts shouldn't need env mappings for PUTS or am I just sadly mistaken?

Env Mapping is missing a value for {
      "@@redux-saga/IO": true,
      "combinator": false,
      "type": "PUT",
      "payload": {
        "action": {
          "type": "authorization/UPDATE_TOKEN",
          "payload": "mockAuthorizationToken"
        }
      }
    }

My saga is just a select() and yields put(). Something like:

export default function* onSuccess(response) {
    const previousToken = yield select(selectAuthorizationToken);

    yield put(updateToken(...))

    return response; // response interceptor stuff requires this
}
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

1 participant