Open cknight opened 11 months ago
I can confirm I'm having the same issue.
Was not present in 1.5, is present in 1.6.
My guess is it's somehow related to how the client navigation is handled because:
f-client-nav
attribute.I'm having this issue as well. I upgraded from 1.5.2 to 1.6.3 today and I get this error whenever I issue a redirect response from within a route handler. If I remove f-client-nav
as @mzgajner suggests the error goes away.
I just wanted to follow up here that this issue is a blocker for us to upgrade to 1.6. Although removing partials is a workaround, this is not an option for us as we make wide use of them in our production app.
I'm having some bother with partials. In my app (very WIP), if you navigate to /accessToken and enter a valid Deno Deploy access token, it will forward you to the very simple
test.tsx
route (/test
). This fails. If I comment out the below two lines of code in my_layout.tsx
, it successfully works. Without partials, the forwarding and rendering work fine.(below is only a snippet of
_layout.tsx
). What is common between both commented out sections (which cause the Partial rendering to fail if uncommented) is the inline checks before rendering. The tab bar in particular is very simple.For example, if I uncomment the
tabEnabledPath
line, I get this error in the browser console. It suggests I forgot to export my componet (I haven't) or mixed up default or named imports (I don't believe I have). I've also tried bothexport default function TabBar
andexport function TabBar
with no difference in results.I've tried to create a simple reproduction from a newly init'd Fresh project. You can find that here: https://github.com/cknight/partial-forward-test. Though this project does roughly similar things, it does actually render the Test route. However, the URL does not update to the
/test
URL. It remains on the/
route.Any help most appreciated.