-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: fix flow error * fix(utils): fix flow error * chore: update dependencies * test: add flow def test files * test(add new test example): * chore(test): remove example * fix(package.json): replace import * Revert "fix(package.json): replace import" This reverts commit 087e4f5. * chore: update dependencies * build: reassemble yarn lock for fixing travis ci checks * ci: change node 9 -> 10
- Loading branch information
Showing
9 changed files
with
5,235 additions
and
3,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"javascript.validate.enable": false, | ||
"editor.formatOnSave": true, | ||
"eslint.validate": [ | ||
{ "language": "javascript", "autoFix": true }, | ||
{ "language": "javascriptreact", "autoFix": true } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* @flow */ | ||
|
||
import { RelayNetworkLayer, cacheMiddleware, urlMiddleware } from 'react-relay-network-modern'; | ||
import RelaySSR from '../src/client'; | ||
|
||
export const network = new RelayNetworkLayer([ | ||
cacheMiddleware({ | ||
size: 100, | ||
ttl: 60 * 1000, | ||
}), | ||
new RelaySSR().getMiddleware({ | ||
lookup: false, | ||
}), | ||
urlMiddleware({ | ||
url: () => 'http://localhost:8000/graphql', | ||
}), | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* @flow */ | ||
|
||
import { RelayNetworkLayer, urlMiddleware } from 'react-relay-network-modern'; | ||
import RelayServerSSR from '../src/server'; | ||
|
||
const relayServerSSR = new RelayServerSSR(); | ||
|
||
export const network = new RelayNetworkLayer([ | ||
urlMiddleware({ | ||
url: () => 'http://localhost:8000/graphql', | ||
}), | ||
relayServerSSR.getMiddleware(), | ||
]); | ||
|
||
console.log(network); |
Oops, something went wrong.