-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
onSuccess not called after upgrading from Expo 51 to 52 #3040
Comments
Getting something very similar here on our android dev build with new arch disabled : "axios": "^1.7.7", <--- axios instance as fetcher
"expo": "^51.0.38",
"react": "18.2.0",
"react-native": "0.74.5",
"swr": "^2.2.5",
"typescript": "~5.3.3" I even added resolutions to make sure peer deps use the same versions we have installed : "resolutions": {
"react": "18.2.0",
"react-native": "0.74.5",
"@types/react": "~18.2.45"
},
"packageManager": "yarn@4.2.2" Adding a EDIT: lookin at the changelogs it seems that the last release for EDIT2: |
Which library is the culprit? Is the issue in react native core? |
After spending some time I got to this issue - facebook/react-native#47730 (comment) |
Bug report
Description / Observed Behavior
onSuccess option is not called after upgrading from Expo 51 to 52
Expected Behavior
onSuccess to be called after fetcher promise is resolved (WORKS on Web, the bug occurs on Android)
Repro Steps / Code Example
Additional Context
swr: 2.2.5
There is a chance this error is related to the new React Architecture since hooks also stop to propagate fetcher results.
in order to use the new React Architecture with Expo, create an Expo 52 project and add/update this line in app.json:
"newArchEnabled": true,
Under
{ "expo": { here } }
Re-launch app after clearing cache.
The text was updated successfully, but these errors were encountered: