You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the curly brace is placed immediately after the start tag, then a runtime error occurs: <Mutation mutation={UPSERT}> {mUpsert => (...
Error:
index.js:1446 Warning: Failed prop type: Invalid prop children of type array supplied to Mutation, expected function.
in Mutation (at SubmitCancel.js:82)
I don't think this has anything to do with apollo, because we are expecting a render function. This has to do with how react-jsx transpiles this. Because jsx now supports passing a function, array, null and a string.
Intended outcome:
On a Mutation component, it seems that the block must begin on a new line after the start tag:
Actual outcome:
if the curly brace is placed immediately after the start tag, then a runtime error occurs:
<Mutation mutation={UPSERT}> {mUpsert => (...
Error:
Versions
System:
OS: macOS High Sierra 10.13.6
Binaries:
Node: 10.12.0 - /usr/local/bin/node
npm: 6.5.0 - /usr/local/bin/npm
Browsers:
Chrome: 71.0.3578.98
Safari: 12.0.2
npmPackages:
apollo-boost: ^0.1.22 => 0.1.22
react-apollo: ^2.3.2 => 2.3.2
The text was updated successfully, but these errors were encountered: