-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Bug report
Repro Steps / Code Example
- npx create-expo-app@latest
configure app.json
"plugins": [
"expo-router",
[
"expo-build-properties",
{
"ios": {
"newArchEnabled": true
},
"android": {
"newArchEnabled": true
}
}
]
],- home.tsx code example
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>
)
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels