Skip to content
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

Relay Modern #5

Merged
merged 8 commits into from
Apr 28, 2017
Merged

Relay Modern #5

merged 8 commits into from
Apr 28, 2017

Conversation

sibelius
Copy link
Member

fix #2

@johntran
Copy link

johntran commented Apr 21, 2017

You're the man :) This is a best example of Relay Modern so far

package.json Outdated
@@ -51,6 +52,8 @@
"clear": "node node_modules/react-native/local-cli/cli.js start --reset-cache",
"lint": "eslint src",
"lint:staged": "lint-staged",
"relay": "relay-compiler --src ./src --schema data/schema.graphql",
"relay:watch": "relay-compiler --src ./src --schema data/schema.graphql --watch",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do "relay:watch": "yarn relay -- --watch" to pass an argument to another yarn script

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upgraded tks

.babelrc Outdated
],
"plugins": [
"./plugins/babelRelayPlugin"
["relay", {"compat": true, "schema": "data/schema.json"}],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can just be ["relay"] unless compatibility mode is needed
https://facebook.github.io/relay/docs/babel-plugin-relay.html

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm reaching this issue here: facebook/relay#1665

I'll try without compat mode

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, didn't know about that

@sibelius sibelius merged commit 87e1c18 into master Apr 28, 2017
@sibelius sibelius deleted the relay-modern branch May 17, 2017 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does "Relay Modern" change anything?
3 participants