tombyrer
tombyrer
Explore posts from servers
SSolidJS
Created by tombyrer on 1/8/2025 in #support
Difference between Soild/Signals & Preact/Signals?
Seems the SoildJS/Signals is still alpha (strange since Soild has been around for years), & PreactJS/Signals is now 2.0 Anyone know the performance & DX differences please?
27 replies
SSolidJS
Created by tombyrer on 1/4/2025 in #support
createSignal with preexisting data store?
https://playground.solidjs.com/anonymous/5ab699c2-0e36-470c-9aae-a9fa62d15d75 Seems the UI will not update when the data is updated outside of createSignal; how can I add it in my data.tsx file please? The timer (while burning) should update the current state to empty when the fuel runs out to 0. TIA
6 replies
HHono
Created by tombyrer on 8/8/2024 in #help
return early from Promise loop
Platform: Clouldflare Workers & KV So I have a form where that I use to search in my KV storage & return matches. Seems the standard that Hono uses is a Promise.all() & .map inside that. But after I got all the matches I want, it still loops the Promises/map. How do I stop the Promise/map loop, & return the matches?
app.post( '/searching',
csrf(),
async (c) => {
const { keys } = await c.env[KVq].list()
const allKV = await Promise.all(
//loop though results in KV storage to see if they match user input
keys.map( async ({ name }, index)=>{ // `name` is key
const valueStr = await c.env[KVq].get(name)
//... see if matches, add to accumulator, then return accumulator
app.post( '/searching',
csrf(),
async (c) => {
const { keys } = await c.env[KVq].list()
const allKV = await Promise.all(
//loop though results in KV storage to see if they match user input
keys.map( async ({ name }, index)=>{ // `name` is key
const valueStr = await c.env[KVq].get(name)
//... see if matches, add to accumulator, then return accumulator
(Might be more a general JS question, sorry. But is for my Hono/CF project. TIA)
3 replies
KPCKevin Powell - Community
Created by tombyrer on 5/17/2024 in #back-end
JavaScript host like Cloudflare Workers & Glitch had a baby?
I remember finding a JS hosting service, kinda like Glitch, but less FE & more BE/REST with generous free tier. Can someone please help share their glitch alternatives?
2 replies
KPCKevin Powell - Community
Created by tombyrer on 5/1/2024 in #front-end
CSS color fallbacks
I'm confused by what the 'final' color would be in this instance:
.foo {
color: #c65d07;
color: color(display-p3 .724144 .386777 .148795);
color: lab(52.2319% 40.1449 59.9171);
}
.foo {
color: #c65d07;
color: color(display-p3 .724144 .386777 .148795);
color: lab(52.2319% 40.1449 59.9171);
}
source My understanding is the lab() will in over the display-p3 since it is last? I think the p3 should be last, or behind a media query. Any best practices?
4 replies
SSolidJS
Created by tombyrer on 4/15/2023 in #support
Animation capture like Remotion?
"Asking for a friend" Is there something like Remotion or this for Solid? https://github.com/mifi/reactive-video
4 replies