Samyar
Samyar
Explore posts from servers
TTCTheo's Typesafe Cult
Created by test_1 on 6/24/2023 in #questions
whats the url of deployed socket.io server
The answer is fairly simple if your socket is deployed on deployedserver.com then you should not use a port at the end and just use the url but if it's running on another port except 80 witch this url refers to in the server you should use nginx to create another server block to host your socket application if you want to deploy your socket in a url create a new subdomain, for example in my case i did : socket.example.com and then i created a new nginx config in my server to reverse proxy to the localhost:4000 (my socket app is running in this port) this article might be helpful : https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-on-ubuntu-22-04
9 replies
TTCTheo's Typesafe Cult
Created by Samyar on 6/20/2023 in #questions
what are the best alternatives for axios ?
well i need them
8 replies
TTCTheo's Typesafe Cult
Created by Samyar on 6/20/2023 in #questions
what are the best alternatives for axios ?
so what you do about interpreters or middleware ?
8 replies
TTCTheo's Typesafe Cult
Created by Samyar on 4/10/2023 in #questions
nextjs e-commerce template
if there is a good free option that's fine
10 replies
TTCTheo's Typesafe Cult
Created by Samyar on 4/10/2023 in #questions
nextjs e-commerce template
both,
10 replies
TTCTheo's Typesafe Cult
Created by Samyar on 3/6/2023 in #questions
Is not providing deps array for useEffect ok?
thank you very much that's great I will try that out 🤝
26 replies
TTCTheo's Typesafe Cult
Created by Samyar on 3/6/2023 in #questions
Is not providing deps array for useEffect ok?
that would be great, I removed the form.setFields and moved it to the query onSuccess, but what about the other useEffect. or if u have any other suggestions or ideas about this I would like to hear
26 replies
TTCTheo's Typesafe Cult
Created by Samyar on 3/6/2023 in #questions
Is not providing deps array for useEffect ok?
26 replies
TTCTheo's Typesafe Cult
Created by Samyar on 3/6/2023 in #questions
Is not providing deps array for useEffect ok?
ok i will share my code, it's not just this time actually I skipped deps many times 😅 so i guess it would be better to get some help about it
26 replies
TTCTheo's Typesafe Cult
Created by Samyar on 3/6/2023 in #questions
Is not providing deps array for useEffect ok?
it willl start an infinite loop of cleaning up...
26 replies
TTCTheo's Typesafe Cult
Created by Samyar on 12/9/2022 in #questions
Is this git merge ok ?
Thank you for your nice explanation. I decided to not rename them because as you said they were already pushed and got reviewed by reviewers.
7 replies
TTCTheo's Typesafe Cult
Created by nexxel on 10/23/2022 in #questions
best way to create reusable components with tailwind and react
so u can use .select2-search instead of border border-gray-300 rounded
32 replies
TTCTheo's Typesafe Cult
Created by nexxel on 10/23/2022 in #questions
best way to create reusable components with tailwind and react
@layer components {
.select2-dropdown {
@apply rounded-b-lg shadow-md;
}
.select2-search {
@apply border border-gray-300 rounded;
}
.select2-results__group {
@apply text-lg font-bold text-gray-900;
}
/* ... */
}
@layer components {
.select2-dropdown {
@apply rounded-b-lg shadow-md;
}
.select2-search {
@apply border border-gray-300 rounded;
}
.select2-results__group {
@apply text-lg font-bold text-gray-900;
}
/* ... */
}
32 replies
TTCTheo's Typesafe Cult
Created by nexxel on 10/23/2022 in #questions
best way to create reusable components with tailwind and react
it's kinda like the cva lib mentioned above
32 replies
TTCTheo's Typesafe Cult
Created by nexxel on 10/23/2022 in #questions
best way to create reusable components with tailwind and react
you can add component classes
32 replies
TTCTheo's Typesafe Cult
Created by nexxel on 10/23/2022 in #questions
best way to create reusable components with tailwind and react
32 replies