NativeWind vs twrnc for react native(+web) Tailwind solution?
Seems like NativeWind is a bit newer and has a nice Babel plugin that makes it feel like developing for web, but twrnc has been around a bit longer and has more interesting functionalities like ios: android:.
Has anyone tried either?...
How to implement manual authentication without TTL entry
In MongoDB land, one way to create a user is creating a userToken when they sign up that automatically gets deleted by the database in
expiresAt seconds if they don't confirm their account via email.
What is the conventional way to accomplish this if there is no TTL functionality as it seems like Prisma doesn't support an expiresAt feature.
I want to avoid a ton of userTokens accumulating in my DB if someone maliciously keeps signing up new accounts - besides rate limiting them and banning their ip etc. Just interested in db level cleaning solutions.. or alternatives to creating this userToken...Type Inference with T3 Stack
What is the best way to infer a type when using the t3 stack from an api call? React Query docs mention the use of Generics but i cant wrap my head around it. More specifically, i want to return an array of the Event Custom Datatype i have defined from the db but i get a type error Event[] is not assignable to type (type structure here). The weird thing data fetching works ok on the frontend. Any resources that would be useful looking into would be greatly appreciated. Thanks!

looking for example of dynamic-routes using trpc ssr
I couldn't find an example project and I am too stupid to understand the docs
Trpc & non-consistent JSON Field Attributes in MySQL
Just getting used to trpc & the t3 stack.
Say I have a standard procedure:
```
update: t.procedure...
Best way to handle who is online.
I have a basic T3 app that is a chat app It has the ability to create separate rooms. I am using web sockets and handle messages, etc. and I can track when someone connects, I just am unsure of how I should handle how the person connects. My current ideas are:
1. Just take the id and store it into a object on the server then just fetch it through trpc. The problem I can see with that is the object could become quite large if you have a large number of users.
2. Store who is online at the time in a DB, it would make it so I can easily query through the data without worrying about handling large objects. Only problem is it would be tons of query's to the DB....
Authorization Checking for editing data?
I was wondering if there's a general best practice to do something like this very simply in T3:
Let's say you have a user profile page. You want anybody to be able to see that page, but only TAHT specific user can edit the page if they're logged in.
What would be the most hassle free way to implement this?...
radix ui or headless ui for unstyled components?
Which one to choose and why? Or maybe something different?
React ref types
Hey. I'm having some difficulty trying to set a type for a ref in React that can be applied to any HTML element.
Scale Node+express
Having issues with handling large amount of incoming requests as server responds 504 soon, Currently running pm2 to handle multiple of them at same time where single user will have multiple requests sent over period of time.
Is there way to queue these incoming request and guaranteed consume them in order (Also need to keep the order each users requests in mind like A1, A2, A3 should be ordered from user A but B1. B2, B3 can be processed in parallel)...
Github is f***ed up.
hey I transferred all of my repos from Bitbucket to Github then realised that commits don't count(show up on my home page) because they don't have the author and email. then I found this bash trick to add email and author to all of my commits on a certain repo:
git filter-branch --commit-filter 'GIT_AUTHOR_NAME="username"; GIT_AUTHOR_EMAIL="email"; git commit-tree "$@";' HEAD
now Github counts the new commits but the old ones are not counted.
...How to setup basePath
I want to setup basePath for my app. I changed next.config, utils/trpc, pages/_app
```
...
trailingSlash: true,
basePath: '/test',...

ssg doesn't work for new data
When a user creates a new post, it doesn't generate a new site. I thought I could achieve that through
revalidate but it doesn't seem to work. This is the code of post/[id].tsx:
```jsx
export const getStaticPaths: GetStaticPaths = async () => {
const posts = await prisma.post.findMany();
// TODO: this can cause problems if we run this the first time the database is reset...Help me with my stack...
Hi folks,
I'm prototyping a website for scores for a niche sport I play. The current popular one is some 2005 era wordpress monstrosity. This one will be nice and simple - display events, teams, players, scores, blog, news, and standings.
Because of the nature of the site, there will be many pages (thousands eventually) that will change quite regularly, so I'll need to SSR. However most of the requests will be for stale data (think people refreshing the score page many times) so I'm thinking I need a solid way to cache results, either in a CDN or serverside db, in order to keep costs low (it's out of my own pocket) and also to keep the site fast.
...
Cross platform stack (web & mobile)
If you were to have one stack that were to cover both web and mobile apps where your UI, logic, BE, DB integrations and so on should be reusable across all your clients.
What would you recommend as a stack for that?
This is the list of what I got so far but I'd gladly take any feedback that you got on this.
...
should I use a trpc request when using getStaticPaths()?
Should I do a trpc request instead of getStaticProps or is this template fine? If the template is fine, how do I get types through my props?

best way to create reusable components with tailwind and react
i am exploring different ways to create reusable components using tailwind and react and found this https://github.com/enochndika/kimia-UI/blob/main/src/packages/button/button.tsx. is this the best way to do this?
Spot the Prisma relation error?
Hey guys, I'm trying to add a
@relation in prisma but I'm forced to create use an array of elements for the model (one to many) and I want a one to one relationship here.
```
model OrderDetail {
id String @id @default(cuid())...error while developing a react component library
i'm developing a react component library, and i get this error. however it disappears when i make a change and the package re-renders (it's in watch mode)
