Braveheart
Explore posts from serversusing the callback to <Show> and update store, results in whole store being set to new value
if I do this in form
setFormDataStore({ companyDetails: { phoneNumber: e.currentTarget.value } });
then the only value in the store is as follows: causing other part to throw undefined errors34 replies
Typesafe <Show> only when store has data
the end result I want
I've tried various things like
createStore<StoreType | {}>({});
-> results in ts errors X doesn't exist on {}
re assigning store to previous declarations
the easy way around this is to create store type object of just empty values until the real values come, but that just seems lame :
49 replies
False positive: `Make sure your app is wrapped in a <Router />` , @solidjs/router 0:7:0 - in npm lib
I have a npm component ( <O_Header) that assumes a router is wrapping it, ie, uses <A> tags
wrapping the app in a router:
usage in the problem project
utils.js?v=84c27385:28 Uncaught Error: Make sure your app is wrapped in a <Router />
at invariant (utils.js?v=84c27385:28:15)
at useRouter (routing.js?v=84c27385:9:32)
at useRoute (routing.js?v=84c27385:11:75)
at useResolvedPath (routing.js?v=84c27385:13:19)
at A (components.jsx:80:16)
at dev.js:524:12
at untrack (dev.js:427:12)
at Object.fn (dev.js:520:37)
9 replies
Access dynamic route params in components outside of the FileRouter
In this structure:
I need the header to render the following:
<A href={
/${params.lang}/sign_in} class="navAction">
where lang is derived from this url http://localhost:3000/en
however params.lang is undefined unless its inside a route7 replies