Skip to content

Commit

Permalink
fix: Cache misses in repl & tutorial content fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Jan 7, 2025
1 parent 9378c1d commit 099539a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/controllers/repl-page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import style from './repl/style.module.css';
export default function ReplPage() {
const { query } = useRoute();

useContent('repl');
useContent('/repl');

const code = useResource(() => getInitialCode(query), [query]);

Expand Down
2 changes: 1 addition & 1 deletion src/components/controllers/tutorial-page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function TutorialPage() {

function TutorialLayout() {
const { path, params } = useRoute();
const { html, meta } = useContent(!params.step ? 'tutorial/index' : path);
const { html, meta } = useContent(!params.step ? '/tutorial/index' : path);

// Preload the next chapter
useEffect(() => {
Expand Down

0 comments on commit 099539a

Please sign in to comment.