mbork.pl
mbork.pl
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
ok, she now accepted my PR, which means that everything should be fine – thanks again!
14 replies
SSolidJS
Created by mbork.pl on 7/19/2024 in #support
What type a derived signal should be?
and I want to type the props
13 replies
SSolidJS
Created by mbork.pl on 7/19/2024 in #support
What type a derived signal should be?
I need to type it, because I pass it as a prop to a component
13 replies
SSolidJS
Created by mbork.pl on 7/19/2024 in #support
What type a derived signal should be?
I know, but I'm asking about good practices. A derived signal is not defined using createSignal, so using Accessor seems not the best idea – OTOH, it is a signal
13 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
thanks again!
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
submitted, I'll let you know how it goes
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
now I will only submit this solution for review to a teammate who will find a problem with it if there is one 😉
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
wow, it really seems to work, and is way simpler than what we had before
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
I'm playing around with it right now...
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
that is pretty clever, thanks!
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
ha
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
sorry
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
ah, no
14 replies
SSolidJS
Created by mbork.pl on 7/18/2024 in #support
How to create a `resource` which accepts two signals but only refetches when the second one changes?
and then doFetch is a function which returns the actual fetcher, do I get it right?
14 replies
SSolidJS
Created by mbork.pl on 5/27/2024 in #support
How to label each page with a title?
I could circumvent this by calling that "not permitted" component inside each and every page component, but that is also not good (obviously), since it heavily violates the DRY principle.
12 replies
SSolidJS
Created by mbork.pl on 5/27/2024 in #support
How to label each page with a title?
Here's an example. If a user tries to access a route they don't have permission to access, the component (which normally sets the title in the context) is not rendered at all (and rightly so). But that means that the user sees a "placeholder component" (which is basically a box saying "You are not permitted to see this") together with a wrong title (because the piece of code which actually sets the header is never reached).
12 replies
SSolidJS
Created by mbork.pl on 5/27/2024 in #support
How to label each page with a title?
right now, the only way I know of accessing the title in <Header> is to keep it in a context object and setting it in every component, which works, but doesn't seem ideal...
12 replies
SSolidJS
Created by mbork.pl on 5/27/2024 in #support
How to label each page with a title?
exactly, that's the point
12 replies
SSolidJS
Created by mbork.pl on 5/27/2024 in #support
How to label each page with a title?
Thanks! Do I get it right that this could solve the <title> tag issue? What about the other one?
12 replies
SSolidJS
Created by mbork.pl on 5/21/2024 in #support
Where can I find any documentation about `RouteDefinition`?
correct?
96 replies