notFound() doen't render css styles!!!
i'm throwing a notFound() when the slug doen't match the parameter like below. But somehow the styles is not attached/ redred in the browser. i have set the
notFoundComponent: () => <NotFound />, in __root.tsx. However for any Not found routes like '/cccc', '/pppp' it does show the all the styles only having issue when throwing explicitlly in beforeLoad.


2 Replies
continuing-cyan•7mo ago
can you please check if there is already an existing issue on GitHub for this?
if not please create one including a complete minimal example repo. please make sure to use the alpha branch of start
eastern-cyanOP•6mo ago
idk if it's good way to fix it but below code somehow working. I see some issue where beforeLoad is not properlly working with notFound()