Skip to content

Commit efd8654

Browse files
committed
chore: update example logging
1 parent 7868c9e commit efd8654

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/rick-morty/src/Characters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function Characters() {
1212
if (status === "loading") return <p>Loading...</p>;
1313
if (status === "error") return <p>Error :(</p>;
1414

15-
console.log(data);
15+
console.info(data);
1616

1717
return (
1818
<div>

examples/star-wars/src/Character.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Character(props) {
2424
if (status === "loading") return <p>Loading...</p>;
2525
if (status === "error") return <p>Error :(</p>;
2626

27-
console.log({ data, status, error });
27+
console.info({ data, status, error });
2828
const homeworldUrlParts = data.homeworld.split("/").filter(Boolean);
2929
const homeworldId = homeworldUrlParts[homeworldUrlParts.length - 1];
3030

examples/star-wars/src/Film.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function Film(props) {
1414
if (status === "loading") return <p>Loading...</p>;
1515
// this will not be necessary when v1 is released.
1616
if (data == null) {
17-
console.log("this shouldn't happen but it does 2");
17+
console.info("this shouldn't happen but it does 2");
1818
return <p>Loading...</p>;
1919
}
2020
if (status === "error") return <p>Error :(</p>;

0 commit comments

Comments
 (0)