Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed Mar 29, 2024
1 parent 99c3bcc commit abe0602
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function App() {
component: (p) => {
// router bug: 'name' not in 'p', update when this is fixed
const name = p.location.pathname.replace("/articles/", "");
console.log("article matched ", name);
const Article = lazy(getArticleComponent(name) as any);
return (
<Article
Expand All @@ -53,7 +54,10 @@ export default function App() {
);
},
matchFilters: {
name: (name: string) => !!getArticleComponent(name),
name: (name: string) => {
console.log("1 article matched ", name);
return !!getArticleComponent(name);
},
},
},
] as RouteDefinition[]
Expand Down

0 comments on commit abe0602

Please sign in to comment.