Skip to content

Commit e6f2eda

Browse files
authored
fix(_official-realtime-app): fix revalidation & user avatars (#103)
1 parent 2b00071 commit e6f2eda

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

_official-realtime-app/app/data.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ export type Issue = {
1313
const users: Record<string, User> = {
1414
chance: {
1515
name: "Chance Strickland",
16-
avatarUrl:
17-
"https://pbs.twimg.com/profile_images/1541089143706374144/uoW00Tgv_400x400.jpg",
16+
avatarUrl: "https://github.com/chaance.png",
1817
},
1918
ryan: {
2019
name: "Ryan Florence",
21-
avatarUrl:
22-
"https://pbs.twimg.com/profile_images/1344410501309030403/L2rNpO6h_400x400.jpg",
20+
avatarUrl: "https://github.com/ryanflorence.png",
2321
},
2422
};
2523

_official-realtime-app/app/root.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { LinksFunction, MetaFunction } from "@remix-run/node";
2-
import { json } from "@remix-run/node";
32
import {
43
Links,
54
Meta,
@@ -50,9 +49,3 @@ function useRealtimeIssuesRevalidation() {
5049
revalidator.revalidate();
5150
}, [data, revalidator]);
5251
}
53-
54-
// FIXME: Pointless action for revalidation until:
55-
// https://github.com/remix-run/remix/issues/4485
56-
export async function action() {
57-
return json({ ok: true });
58-
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { json } from "@remix-run/node";
2+
3+
// FIXME: Pointless action for revalidation until:
4+
// https://github.com/remix-run/remix/issues/4485
5+
export async function action() {
6+
return json({ ok: true });
7+
}

0 commit comments

Comments
 (0)