Bravi
Bravi
SSolidJS
Created by Bravi on 12/8/2024 in #support
How to handle reactivity in this example?
I think I figured it out. I think the problem is that since SortableJS changes the order, For is unable to track these changes properly. I came across this: https://gist.github.com/Legend-Master/527e0afcf9ce4621361bc00a994c50f5 and I've updated my code accordingly and it seems to work so far
3 replies
SSolidJS
Created by Bravi on 12/4/2024 in #support
How to prevent re-creation of a component inside <For>?
I was actually thinking about using a store + reconcile for more granularity but at the same time I was trying to avoid quite a bit of refactor 😄 but I guess there's no way around it
7 replies
SSolidJS
Created by Bravi on 12/4/2024 in #support
How to prevent re-creation of a component inside <For>?
Oh I didn't know about Keyed. Thank you, will look into that now
7 replies
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