Bravi
Bravi
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
that's what you meant, correct?
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
as in, when I submit the form, it will reload the page and for the message to show up
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
actually reload is fine
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
maybe I shouldn't be using a signal here 🤔
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
okay that does hide it. but now the problem is that when I submit the page, I cannot make that bit show up at all 😄
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
thanks, I'll look into it
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
okay here's another example, perhaps this would be more relevant to the use case. I have a page, which should show certain elements only for logged in users
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
SSR, TypeScript, with-tailwindcss template
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
so I used pnpm create solid@latest
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
it's literally a newly created project
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
yes
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
but I wanted a simpler solution in this case
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
I know I can redirect users to a separate route, that renders the table and check for whether the user is logged in or not there
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
yeah. so basically what I'm trying to achieve is that I have a table, which should only be rendered for logged in users
27 replies
SSolidJS
Created by Bravi on 3/30/2023 in #support
How to use <Show> in ssr?
so is there no similar functionality as for example in php where I can do
<?php if .. : ?>
<div>Hello world</div>
<?php endif; ?>
<?php if .. : ?>
<div>Hello world</div>
<?php endif; ?>
27 replies
SSolidJS
Created by Bravi on 3/1/2023 in #support
ProtectedRoute with a redirect using @solidjs/router
Hey @._rb , thanks for your reply. Unfortunately this approach doesn't work, because even if I land on a different route (not the protected one), both the onMount inside a protected route and <Navigate /> are executed and therefore I'm redirected to /login
4 replies