How to dynamically 'render' a string interweaved with `<span />`'s
<textarea />
to a <div contenteditable />
so that I have full control on how to render the text inside. Now my question is, the way I mark spelling and grammer errrors in with an array of index ranges ([number, number][]
).
right now I do the 'rendering' with this code
```tsx...Component in test is not updating despite signal change
SingleFlight does not work (See Example)
shadcn-solid plain install ? (maybe a tailwind issue?)
https://shadcn-solid.com/
?
I created a clean project, followed their installation by the book ( https://shadcn-solid.com/docs/installation/solid-start ) and still getting ...Context provider breaks while using esbuild-plugin-solid
Questions on the `preload` functionality
preload
functionality and the related query
function.
The doc says there are some caveats to be aware of when using preload
, specifically
1. Thepreload
function is called once per route, which is the first time the user comes to that route. Following that, the fine-grained resources that remain alive synchronize with state/url changes to refetch data when needed. If the data needs a refresh, the refetch function returned in the createResource can be used. 2. Before the route is rendered, thepreload
function is called. It does not share the same context as the route. The context tree that is exposed to thepreload
function is anything above thePage
component....
Generate static UI elements from server data only ONCE
countries
which contains file us.json
and ca.json
. For each file in folder countries
, I want to generate an <A>
element onto the Layout component. I struggle to know how to "send" this data from server to client and construct the UI, but only ONCE at startup - since the countries
folder is static
Stackblitz: https://stackblitz.com/~/github.com/bhuynhdev/solid-start-test...Do a one-time server operation upon page load, and then re-use that data
/map/[country].tsx
2. Upon loading this page the first time, I want to query database for list of country and store that data into server memory. So that subsequent navigation to the map/[country].tsx
can just index the maps
object instead of querying the db again...Component routing vs config-based routing
Client-only API called on the server side.
_jsx_runtime
it's easy-ish to adapt it from react-only to other JSX supporting libraries. (https://github.com/kentcdodds/mdx-bundler)
I've managed to nail it down for some of the libraries, unfortunately I'm stuck with Solid's one, and I'm not that familiar with Solid (https://github.com/kentcdodds/mdx-bundler/pull/236)
I've...createSignal equals: false on mutable object value
createMutable
, which I suspect is at the crux of this....Third party authentication
Calling a JSX event handler explicitly
How to filter/remove elements from an array within a Store
createStore
invocation:
```tsx
export type WeeklyTimesheetSubmission = {
readonly cards: TimesheetCard[];...Related components
Error when using protected$ from @solid-mediakit/auth.
Range input issue with Dynamic component
solid router, absolute routes?
behaviour of createAsync in hooks - why cached?
Solid routing