Skip to content

Commit

Permalink
upgrade example to 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Aug 3, 2020
1 parent 2b63436 commit 7880e10
Show file tree
Hide file tree
Showing 20 changed files with 110 additions and 115 deletions.
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"react-relay": "0.0.0-experimental-8058ef82",
"reason-promise": "^1.1.1",
"reason-react": "^0.9.1",
"reason-relay": "0.10.0",
"reason-relay": "0.11.0",
"relay-compiler": "10.0.1",
"relay-config": "10.0.1",
"relay-runtime": "10.0.1"
},
"devDependencies": {
"bs-platform": "8.0.3",
"bs-platform": "8.2.0",
"html-webpack-plugin": "^3.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9",
Expand Down
2 changes: 1 addition & 1 deletion example/src/RecentTickets.re
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ let make = (~query as queryRef) => {
</thead>
<tbody>
{data.ticketsConnection
->Fragment.getConnectionNodes_ticketsConnection
->Fragment.getConnectionNodes
->Belt.Array.map(ticket =>
<SingleTicket key={ticket.id} ticket={ticket.fragmentRefs} />
)
Expand Down
22 changes: 12 additions & 10 deletions example/src/SingleTicketWorkingGroup.re
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ let make = (~workingGroup as wgRef) => {
<button
type_="button"
onClick={_ =>
startTransition(() =>
refetch(
~variables=
WorkingGroupFragment.makeRefetchVariables(
~includeMembers=true,
(),
),
(),
)
)
startTransition(() => {
let _ =
refetch(
~variables=
WorkingGroupFragment.makeRefetchVariables(
~includeMembers=true,
(),
),
(),
);
();
})
}>
{React.string(isPending ? "Loading..." : "See members")}
</button>
Expand Down
4 changes: 2 additions & 2 deletions example/src/TicketStatusBadge.re
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ let make = (~ticket as ticketRef) =>
<label className="badge badge-gradient-danger">
{React.string("REJECTED")}
</label>
| `FutureAddedValue(_) => React.null
};
| _ => React.null
};
2 changes: 1 addition & 1 deletion example/src/TodoList.re
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ let make = (~query as queryRef) => {
<div className="list-wrapper">
<ul className="d-flex flex-column-reverse todo-list todo-list-custom">
{todoListData.todosConnection
->TodoListFragment.getConnectionNodes_todosConnection
->TodoListFragment.getConnectionNodes
->Belt.Array.map(todoItem =>
<SingleTodo
key={todoItem.id}
Expand Down
2 changes: 2 additions & 0 deletions example/src/__generated__/Avatar_user_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example/src/__generated__/MainQuery_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 13 additions & 12 deletions example/src/__generated__/RecentTickets_query_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example/src/__generated__/SingleTicket_ticket_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions example/src/__generated__/SingleTodoDeleteMutation_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions example/src/__generated__/SingleTodoUpdateMutation_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions example/src/__generated__/SingleTodo_todoItem_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 9 additions & 33 deletions example/src/__generated__/TicketStatusBadge_ticket_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 19 additions & 18 deletions example/src/__generated__/TodoListAddTodoMutation_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions example/src/__generated__/TodoList_query_graphql.re

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7880e10

Please sign in to comment.