Skip to content

Commit 27fcc22

Browse files
committed
Add comment to clarify CSR workaround in CSR component
1 parent f91a89b commit 27fcc22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-app/app/routes/csr.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function meta({ }: Route.MetaArgs) {
1212

1313
export default function CSR() {
1414
const [pageLoaded, setPageLoaded] = useState(false);
15+
// Since we cannot selectively disable SSR on a route, we can use a state variable to determine if the page has loaded. This is a workaround to simulate CSR.
1516
useEffect(() => {
1617
setPageLoaded(true);
1718
}, []);

0 commit comments

Comments
 (0)