redux-saga / redux-saga

An alternative side effect model for Redux apps

Home Page:https://redux-saga.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

call stopped working after react native 0.64.1 - react 17.0.1 update

dbilgin opened this issue · comments

Steps to reproduce

Description of the bug/issue

We were using react native 0.63.3 and react 16.13.1 and everything was working, recently we decided to migrate to react native 0.64.1 and react 17.0.1 and the app stopped working, we noticed that the reason is because of the saga call functions. After spending some time on our project, I decided to check this out on a newly created project and saw that the issue is still there.

Steps to reproduce the bug/issue

  1. Create a new react native application (not expo)
  2. Add simple redux and saga
  3. Make a call to an async function and try to get the return value

Example

https://github.com/dbilgin/hey

Actual results

The function gets called but the value is never returned and the saga stops.

The Expected results

The value should return.

Environment information

This is a brand new react native project with the following dependencies added:

    "react-redux": "^7.2.4",
    "redux": "^4.1.0",
    "redux-saga": "^1.1.3"

@dbilgin Hello, I am facing the same problem , how did you fix the problem please?

@yasserwaseet it turned out not to be a redux-saga issue, but one of the functions did not work at all, it wasn't resolving the promise.