tropic
Explore posts from serversTTCTheo's Typesafe Cult
•Created by tropic on 2/14/2024 in #questions
How to fix markdown rendering with ShadCN/ Tailwind
Hi, I am trying to render markdown from my DB but in darkmode specifically, some of my H tags arent taking the color from the tailwind class. Here is the code below
6 replies
TTCTheo's Typesafe Cult
•Created by tropic on 8/19/2023 in #questions
Hydration Failed Error in Next.js: Mismatch Between Server and Client Rendered HTML
Hello fellow developers,
I've been working on a Next.js application, and I've encountered a "Hydration Failed" error that I'm struggling to resolve. The issue arises when the initial UI rendered on the server doesn't match what's rendered on the client, particularly when dealing with small screen sizes.
This Code is to render some Initial items on the left that you can click on and see a detailed view on the right(not implemented yet). On small screens I want to just redirect to the details page for that particular item instead.
18 replies
TTCTheo's Typesafe Cult
•Created by tropic on 4/20/2023 in #questions
Headless UI Stops Working when Adding addition elements to components
I have this component that I am trying to add a header to from tailwind UI, But when I add the header it no longer works. Here is the link to the repo
I have working.tsx which is working vs index which is not working
https://github.com/Tropic-OSS/Avias-Creations/blob/dev/src/pages/working.tsx
https://github.com/Tropic-OSS/Avias-Creations/blob/dev/src/pages/index.tsx
11 replies
TTCTheo's Typesafe Cult
•Created by tropic on 4/16/2023 in #questions
Auth0 Problems within T3 App - ID Too Long
Hey there, I am having some issues with auth0 Provider in ct3 using the prisma provider generated.
I added the auth0 provider but now I am getting this error anytime I use the sign in button
9 replies
TTCTheo's Typesafe Cult
•Created by tropic on 3/12/2023 in #questions
Hey I am getting an error in my newly generated ct3 app saying that it cannot read file tscofig.json
5 replies
TTCTheo's Typesafe Cult
•Created by tropic on 1/22/2023 in #questions
Running automated jobs for different discord servers via discord bot
Hi, I am implementing a feature to automatically post some content on reddit via their api using a discord bot. Now my problem is how do I schedule the time for this posting to happen so that each individual server can post without me polling the DB for the time that was set to post
2 replies
TTCTheo's Typesafe Cult
•Created by tropic on 1/15/2023 in #questions
How can I efficiently retrieve settings from my database?
5 replies
TTCTheo's Typesafe Cult
•Created by tropic on 1/5/2023 in #questions
Hi, I am getting a hydration error and I am hella confused on why. I dont see any incorrect tsx here
I am trying to make a table but for some reason im getting a hydration error on this one page
40 replies
TTCTheo's Typesafe Cult
•Created by tropic on 12/31/2022 in #questions
Hey..... I am trying to implement some sort of sidebar, How do I go to correct path
I am not sure how to get the [id] so I can prefix all my paths to make it navigate to the right page
test.com/90923 -> test.com/90923/settings -> test.com/90923/links etc
15 replies
TTCTheo's Typesafe Cult
•Created by tropic on 12/6/2022 in #questions
Getting dupilcate data from table pagination
6 replies
TTCTheo's Typesafe Cult
•Created by tropic on 12/5/2022 in #questions
Using getServerSideProps vs TRPC in T3Stack
Hey quick thing, should I use getServerSideProps use or trpc.auth.getSession to check for auth when loading pages ?
6 replies
TTCTheo's Typesafe Cult
•Created by tropic on 12/3/2022 in #questions
How do I get and save the access token from discord oauth create-t3-app
Hi, I have been searching around for a solution to this for 3 hours now, I am probably retarded.
I am trying to get all the guilds from discord, but I need the access token for authorization using next auth in my t3-app. When adding the token to the session call back it errors out. I tried to use the jwt call back along with the session call back to see if thats what was needed with no luck.
Link to solutions that I have tried:
https://next-auth.js.org/configuration/callbacks#session-callback
https://stackoverflow.com/questions/72759053/not-able-to-get-the-access-token-for-discord-user-next-auth
https://github.com/mac-eth/nextjs-nextauth-discord-tutorial
6 replies
TTCTheo's Typesafe Cult
•Created by tropic on 11/30/2022 in #questions
Central Rest API Vs Direct Database Connection For Data Queries
7 replies
TTCTheo's Typesafe Cult
•Created by tropic on 10/31/2022 in #questions
Can I use PostgreSQL as a timeseries database
Hi, I am doing a project to possibly use as my final major project at UNI...I know there are database hosting sites out there specifically for this but I am a tinkerer and was wondering if it a good idea to use PostgreSQL to store time series data. I am away that for a small scale project it doesn't matter but If I were to offer this as a full service would it end up biting me in the ass in the future.
14 replies