avant
avant
Explore posts from servers
SSolidJS
Created by avant on 10/26/2024 in #support
export route = {}
No description
6 replies
DIAdiscord.js - Imagine an app
Created by avant on 9/20/2024 in #djs-questions
Discord OpenID != Google OpenID?
I KNOW I CAN USE ACCESS_TOKEN, this is specifically about openid (parentheses mean "or", profile or email) Google Scopes: openid, userinfo.profile (userinfo.email) Code exchange response: access_token, id_token, etc id_token: has name (email) Discord Scopes: openid, identify (email) Code exchange response: access_token, id_token, etc id_token: does not have name (email) My fault? Just how discord openid works?
const data = await fetch("https://discord.com/api/oauth2/token", {
method: "POST",
headers: {
"content-type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({
client_id: id,
client_secret: process.env.DC_SECRET || "",
redirect_uri: "http://localhost:3000",
scope: "openid identify",
code: code,
grant_type: "authorization_code",
}).toString(),
});
const data = await fetch("https://discord.com/api/oauth2/token", {
method: "POST",
headers: {
"content-type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({
client_id: id,
client_secret: process.env.DC_SECRET || "",
redirect_uri: "http://localhost:3000",
scope: "openid identify",
code: code,
grant_type: "authorization_code",
}).toString(),
});
4 replies
SSolidJS
Created by avant on 7/9/2023 in #support
SolidStart progress communication
Please start using Github release feature so we know whats going on with the progress of this tool, your hard work currently is not being seen because of this communication issue. Thanks
1 replies
SSolidJS
Created by avant on 7/6/2023 in #support
JSX alternatives?
Are there any that I could use with Solid, Im very tired of html and its closing tags
4 replies
SSolidJS
Created by avant on 5/25/2023 in #support
Does SolidStart have CSRF protection by default?
questionmark Didnt find it in docs, so I'm just asking to be sure
24 replies
SSolidJS
Created by avant on 5/22/2023 in #support
HTTP trip, custom backend
I was reading about this main idea of SSR, that it skips one step by fetching data and sending it from the backend instead of frontend So what if I want to have my own backend, then when route changes my createServerData$ sends a request to my other backend instead of straight to database and thats an additional trip (? if I got it right) So the question is If both SolidStart project and my custom Rest Api are on the same server, but different port, is it a big deal? Should I use SolidStart as my main backend if I want it to be as fast as possible? Thank you
2 replies
SSolidJS
Created by avant on 5/20/2023 in #support
Nested routing not working
One video is with npm, the other with pnpm Both not working, what am I doing wrong? cat.tsx
import { A, Outlet } from "solid-start";

const CatLayout = () => {
return (
<>
<A href="/cat">Cat</A>
<A href="/cat/dog">Dog</A>
<hr />
<Outlet />
</>
);
};

export default CatLayout;
import { A, Outlet } from "solid-start";

const CatLayout = () => {
return (
<>
<A href="/cat">Cat</A>
<A href="/cat/dog">Dog</A>
<hr />
<Outlet />
</>
);
};

export default CatLayout;
/cat/index.tsx
const Cat = () => {
return <>Cat</>;
};

export default Cat;
const Cat = () => {
return <>Cat</>;
};

export default Cat;
/cat/dog.tsx
const Dog = () => {
return <>Dog</>;
};

export default Dog;
const Dog = () => {
return <>Dog</>;
};

export default Dog;
2 replies
SSolidJS
Created by avant on 5/15/2023 in #support
createRouteAction Form TypeScript
4 replies
SSolidJS
Created by avant on 5/14/2023 in #support
Where to protect SolidStart routes?
I tried layouts, but it loads data only once per page if I'm right, so if user gets logged out it doesn't react I tried middleware like in here https://start.solidjs.com/advanced/middleware, but it didn't re-load either, so am I doing something wrong (I'm not the sharpest tool) or is there a better way?
2 replies
SSolidJS
Created by avant on 1/18/2023 in #support
Forward props
How to forward props from parent to children without losing reactivity?
6 replies
SSolidJS
Created by avant on 1/17/2023 in #support
useReducer in Solid, but how
2 replies
SSolidJS
Created by avant on 1/5/2023 in #support
Image loading SSR
Is it possible to display loading indicator while <img> is loading in SolidStart?
3 replies
SSolidJS
Created by avant on 12/25/2022 in #support
Route actions
1 replies
SSolidJS
Created by avant on 12/20/2022 in #support
Solid's Ecosystem
Is there a list or something like that where I can find all most popular libraries to use with Solid? I mean libraries for i18n, forms, etc.
2 replies
SSolidJS
Created by avant on 12/19/2022 in #support
Streaming Suspense
Is it already possible to display a loader using suspense and streaming ssr?
3 replies
SSolidJS
Created by avant on 12/16/2022 in #support
SolidStart release date
Sorry if this question is annoying, but how long do you think until SolidStart is releasing? I'm now so I don't know how much time these things take. This question is not to offend or something, just interested.
11 replies
SSolidJS
Created by avant on 12/16/2022 in #support
Suspense
Can someone explain the part on why I shouldn't jump into using it? I don't understand https://www.solidjs.com/tutorial/async_suspense Thank you
2 replies
SSolidJS
Created by avant on 12/1/2022 in #support
Handling forms
Is there a popular forms library between Solid js'ers? What do you guys use?
12 replies