-
Notifications
You must be signed in to change notification settings - Fork 270
-
Notifications
You must be signed in to change notification settings - Fork 270
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
thunk actions fired in offline mode are saved as null inside actionQueue #298
Comments
I have been having the same issue and have been trying to debug this for the last 24 hours. It has nothing to do with From what I can gather, I created this snack to showcase the problem: https://github.com/KyleAsaff/react-native-offline-bug As you can see from the screenshot below when I run the code from the snack on my computer, Anyone have any insight here? |
Is there a solution for this issue? |
no. I debugged what I could and set up a snack to easily reproduce the bug. I am still waiting for a maintainer/contributor to comment on the issue. I am unfortunately still waiting for a fix as well. |
Hey guys, Sorry for the late reply, unfortunately I don't have too much time to keep an active eye on this library anymore. However, I'll try to shed some light based on your comments/screenshots. I haven't used redux dev tools for a while, but it seems it's not serialising any function at all and shallows them, probably some custom filter or alternatively it may convert the JS objects internally to Again, this is hypothetical, but the fact that That being said, @codeamo your configuration seems incomplete. You are not persisting the offline queue but wrote some configuration to do so, namely: thunk.meta = {
retry: true, // This is for intercepting in memory
name: 'saveProfilePicture', // This is for persisting
args: [downloadURL] // This is for persisting
}; Please doublecheck the docs. I'd recommend to not blacklist |
hey @rgommezz thanks for the response
now knowing this I will give it another shot and report back with my findings. I plan to work on my app's offline mode within the next few weeks. |
Is there any update on this? I am not using redux-persist and still the thunks are added to the queue as null? |
I am also facing null issue and not using redux-persist. |
Any solution? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Hey, I don't know if still relevant but this worked for me |
Current Behavior
I am using redux-thunk as middleware and I am unable to store thunk actions to action queue in offline mode. the only thing I see on my redux dev tools state tree is an array of null.
I don't know why but when offline action is fired, the payload of the action also seems to be empty.
Expected Behavior
Your Environment
The text was updated successfully, but these errors were encountered: