shaaah
shaaah
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Deras on 9/19/2023 in #questions
Looking for an up-to-date RN CLI tutorial
yea but what approach do you go with when you have to do Web + Mobile? Because tamagui seems to be solving that particular issue
19 replies
TTCTheo's Typesafe Cult
Created by Deras on 9/19/2023 in #questions
Looking for an up-to-date RN CLI tutorial
Do you guys have any thoughts on https://tamagui.dev/ ?
19 replies
TTCTheo's Typesafe Cult
Created by Deras on 9/19/2023 in #questions
Looking for an up-to-date RN CLI tutorial
Because I feel I'v seen different packages for firebase and navigation for CLI and Expo, I could be wrong
19 replies
TTCTheo's Typesafe Cult
Created by Deras on 9/19/2023 in #questions
Looking for an up-to-date RN CLI tutorial
Oh is it? Interesting
19 replies
TTCTheo's Typesafe Cult
Created by Deras on 9/19/2023 in #questions
Looking for an up-to-date RN CLI tutorial
@shiroyasha9 They haven't improved the CLI? Would you recommend going with Expo then?
19 replies
TTCTheo's Typesafe Cult
Created by shaaah on 9/18/2023 in #questions
HttpOnly Cookie
Thank you for you response @ronanru A follow up question, is it possible to prevent the browser from blocking it?
4 replies
TTCTheo's Typesafe Cult
Created by Perchant on 3/27/2023 in #questions
Browser suggestion
Chrome
17 replies
TTCTheo's Typesafe Cult
Created by niels on 3/26/2023 in #questions
Buying domains and emails
For Domain Names, Godaddy is good and NameCheap
21 replies
TTCTheo's Typesafe Cult
Created by niels on 3/26/2023 in #questions
Buying domains and emails
Zoho is free upto 5 emails, Google is very very expensive.
21 replies
TTCTheo's Typesafe Cult
Created by Mendy on 3/1/2023 in #questions
tRPC, Is it just for front end?
So tRPC isnt really helpful if the front end is separately created?
9 replies
TTCTheo's Typesafe Cult
Created by venus on 2/27/2023 in #questions
Dynamic subdomains
So you basically want to redirect the url from So something like this: subdomain.mysite.com/hello to this => mysite.com/subdomain/hello. ?
20 replies
TTCTheo's Typesafe Cult
Created by devagr on 2/27/2023 in #questions
Nextjs with CSS in JS
Can you show an example of what have you tried so far
7 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
Right, Now I'm finally getting the hang of React query 😄 , thanks for your valuable informations
12 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
ohh I see, it is the same with useInfiniteQuery too? Cuz ever since I added that custom message attribute I'v been getting the error Property message does not exist on type InfiniteData<TQueryFnData> and I'm new to TS, so I just put any at the end of the line xD. I put as any
12 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
messages here doens't appear inside the old of setQueryData
12 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
useInfiniteQuery(['key', id, name], ({ pageParam }) => fetchAPI(pageParam, id, name), {
getNextPageParam: () => {},
select: currData => {
currData.pages.map(data => data.messages || []).flat();

return {
...currData,
messages: currData,
};
},
});
useInfiniteQuery(['key', id, name], ({ pageParam }) => fetchAPI(pageParam, id, name), {
getNextPageParam: () => {},
select: currData => {
currData.pages.map(data => data.messages || []).flat();

return {
...currData,
messages: currData,
};
},
});
12 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
In my case the old does't seem to have the transformed data which is message, let me post an example
12 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
Found something interesting, So I'm transforming the data using the select, so instead of it returning pages and pageParams, I flaten the pages and return those two attributes + a new attribute named todo. Which works fine on useInfiniteQuery, but that attribute doesn't exist when using setQueryData
12 replies
TTCTheo's Typesafe Cult
Created by shaaah on 2/8/2023 in #questions
React Query, How to perform infiniteScrolling with custom variables
Ah gotchya, Yes I can refetch the data, you are right. And I din't had to pass the currentPage like you mentioned, thanks for that tip. How about in case where I want to update, lets say a todo on click. but I dont want to update it via api instead I'll just listen to the success response and update it locally. I tried setQueryData(), but this din't seem to work actually.
12 replies
TTCTheo's Typesafe Cult
Created by nexxel on 11/1/2022 in #questions
how to reduce layout shift in astro
tbh, I never seen a layout shift this crazy. Its like the font is doing this purposely to mess with you, there is no other explanation to it
124 replies