Baptiste
Baptiste
Explore posts from servers
SSolidJS
Created by Baptiste on 1/12/2024 in #support
Autofill input does not trigger the `onInput` callback
I'm having a hard time understanding it. Probably related to https://github.com/solidjs/solid/discussions/416 ?
6 replies
CDCloudflare Developers
Created by Baptiste on 10/6/2023 in #general-help
Streaming is buffered when Cloudflare proxy is on?
I'm deploying an edge function on Vercel. It streams a response and it works just fine when Cloudflare proxy is disabled. But, when the proxy is enabled, it seems it buffers the stream and send it as a whole once it's done. How is it possible? The weird thing is that it worked a few days ago with proxy enabled as well. I also tried to set these headers in the response to tell Cloudflare not to "cache anything":
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
Pragma: 'no-cache',
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
Pragma: 'no-cache',
I just don't know what to do now...
4 replies
SSolidJS
Created by Baptiste on 1/11/2023 in #support
Register custom component props without default values
Currently, I need to give default values to component properties if I want them to be registered:
customElement(
'typebot-standard',
{
apiHost: '',
isPreview: false,
resultId: '',
startGroupId: '',
prefilledVariables: {},
typebotId: '',
},
Bot
)
customElement(
'typebot-standard',
{
apiHost: '',
isPreview: false,
resultId: '',
startGroupId: '',
prefilledVariables: {},
typebotId: '',
},
Bot
)
But that's really not convenient. Is there a way to register props without default values?
3 replies
SSolidJS
Created by Baptiste on 12/22/2022 in #support
Importing web component `[...] does not exist on type 'JSX.IntrinsicElements'`
I'm trying to insert a web component in my Solid component:
import '@power-elements/stripe-elements'

declare global {
namespace JSX {
interface IntrinsicElements {
'stripe-payment-request': any
}
}
}

const App = (props) => <div>
<stripe-payment-request
publishable-key={props.options.publicKey}
client-secret={props.options.paymentIntentSecret}
generate="source"
amount="125"
label="Double Double"
country="CA"
currency={props.options.currency}
/>
</div>
import '@power-elements/stripe-elements'

declare global {
namespace JSX {
interface IntrinsicElements {
'stripe-payment-request': any
}
}
}

const App = (props) => <div>
<stripe-payment-request
publishable-key={props.options.publicKey}
client-secret={props.options.paymentIntentSecret}
generate="source"
amount="125"
label="Double Double"
country="CA"
currency={props.options.currency}
/>
</div>
But it says Property 'stripe-payment-request' does not exist on type 'JSX.IntrinsicElements'.. Any idea how to fix this?
4 replies
SSolidJS
Created by Baptiste on 12/8/2022 in #support
Export an IIFE build with esbuild not working as expected
Is there any guide on how to export an IIFE build? I tried setting up esbuild to do that but it doesn't work as expect (cf video)
2 replies