Skip to content

Commit

Permalink
upgrade example to 0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Dec 13, 2021
1 parent 66e6c95 commit 6e96dfa
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 106 deletions.
7 changes: 1 addition & 6 deletions example/bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
"suffix": ".bs.js",
"ppx-flags": ["rescript-relay/ppx"],
"namespace": true,
"bs-dependencies": [
"@rescript/react",
"rescript-relay",
"bs-fetch",
"reason-promise"
],
"bs-dependencies": ["@rescript/react", "rescript-relay", "bs-fetch"],
"refmt": 3
}
21 changes: 10 additions & 11 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@
},
"dependencies": {
"@mdi/font": "3.7.95",
"@rescript/react": "0.10.1",
"@rescript/react": "0.10.3",
"bootstrap": "^4.3.1",
"bs-fetch": "^0.5.0",
"concurrently": "^5.0.0",
"graphql": "^14.5.8",
"react": "0.0.0-experimental-4e08fb10c",
"react-dom": "0.0.0-experimental-4e08fb10c",
"react-relay": "11.0.2",
"reason-promise": "^1.1.1",
"relay-compiler": "11.0.2",
"relay-config": "11.0.2",
"relay-runtime": "11.0.2",
"rescript-relay": "0.21.0",
"react": "18.0.0-rc.0",
"react-dom": "18.0.0-rc.0",
"react-relay": "12.0.0",
"relay-compiler": "12.0.0",
"relay-config": "12.0.0",
"relay-runtime": "12.0.0",
"rescript-relay": "0.23.0",
"subscriptions-transport-ws": "^0.9.18"
},
"devDependencies": {
Expand All @@ -43,7 +42,7 @@
"copyright": "",
"license": "",
"resolutions": {
"react": "0.0.0-experimental-4e08fb10c",
"react-dom": "0.0.0-experimental-4e08fb10c"
"react": "18.0.0-rc.0",
"react-dom": "18.0.0-rc.0"
}
}
2 changes: 1 addition & 1 deletion example/src/Index.res
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* it's a requirement that the environment is available in the
* context.
*/
ReactExperimental.renderConcurrentRootAtElementWithId(
ReactDOMExperimental.renderConcurrentRootAtElementWithId(
<RescriptRelay.Context.Provider environment=RelayEnv.environment>
<App />
</RescriptRelay.Context.Provider>,
Expand Down
2 changes: 1 addition & 1 deletion example/src/SingleTicketWorkingGroup.res
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module WorkingGroupFragment = %relay(`
@react.component
let make = (~workingGroup as wgRef) => {
let (workingGroup, refetch) = WorkingGroupFragment.useRefetchable(wgRef)
let (startTransition, isPending) = ReactExperimental.useTransition()
let (isPending, startTransition) = ReactExperimental.useTransition()

<div>
<strong> {React.string(workingGroup.name)} </strong>
Expand Down
Loading

0 comments on commit 6e96dfa

Please sign in to comment.