We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
configure app.json
"plugins": [ "expo-router", [ "expo-build-properties", { "ios": { "newArchEnabled": true }, "android": { "newArchEnabled": true } } ] ],
import useSWRMutation from 'swr/mutation' function Home () { const {trigger, data, error} = useSWRMutation('https://github.com', (key) => fetch(key).then(res => res.text())) console.log({data, error}) // always print {"data": undefined, "error": undefined} function submit () { // print error: "(NOBRIDGE) ERROR [TypeError: Cannot read property 'add' of undefined]" trigger().then(console.log).catch(console.error) } return ( <View> <Button title='mutation' onPress={submit}></Button> </View> ) }
The text was updated successfully, but these errors were encountered:
I've facing the same issue whenever using the mutation. Probably related to the usage of transition.
Sorry, something went wrong.
No branches or pull requests
Bug report
Repro Steps / Code Example
configure app.json
The text was updated successfully, but these errors were encountered: