I noticed that when built, my app loads images from Home (path="/") on every other route too.
<Router>
<Home path="/" /> {/*thumb images should be loaded*/}
<About path="/about" /> {/*images should not be loaded*/}
<Article path="/:slug" /> {/*images should not be loaded*/}
</Router>
Home
About
Article
I guess in react-router it would be solved with adding exact to the first route, but I don't know of such behavior in preact-router.
I noticed that when built, my app loads images from
Home
(path="/"
) on every other route too.I guess in react-router it would be solved with adding
exact
to the first route, but I don't know of such behavior in preact-router.