Fredkisss 😘👨🏾‍💻 Profile Banner
Fredkisss 😘👨🏾‍💻 Profile
Fredkisss 😘👨🏾‍💻

@fredkisss

Followers
1,167
Following
2,322
Media
1,091
Statuses
9,503

fullstack web ‹div›elopper and big weeb 😎. Streaming on Working as a frontend dev @modularcloud1 Hacking away a PaaS @zaneopsdev

France
Joined September 2018
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Why do @nextjs server actions run sequentially, instead of just cancelling each other? Video shows 2 examples (simulated slow network): 1. Next: actions run in sequence, UI updates after all requests are complete 2. Remix: actions cancel each other, UI updates after 1 request
21
20
305
@fredkisss
Fredkisss 😘👨🏾‍💻
11 months
@yakpuu_ This also applies to african people
0
0
277
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
Some progress on my GitHub clone with @nextjs app router : - Created my 1st "full stack component" : <Markdown> - Optimized my SQL queries from 800ms to 6ms Let's go 1/13 #buildinginpublic
Tweet media one
Tweet media two
6
12
255
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
This one PR has been made specifically for me 👀 (and people who don't want to host on vercel) →
Tweet media one
6
16
251
@fredkisss
Fredkisss 😘👨🏾‍💻
2 years
@lesjoiesducode Localhost, c’est le plus rapide des hébergeurs, en plus d’être gratuit 😁
1
2
208
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
Server actions are now in react docs : →
2
28
213
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
Next js just published a new canary version allowing to handle progressively enhanced form errors 🥳 : Now i can say safely that next is really stable as this completes the full API for data fetching + mutations. Here is a demo of how it works :
7
19
165
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
Some progress on the github clone with next App Router - Started implementing the github action list component, which renders a modal on mobile - For now you can filter by name, but against fake data (we will get the data later) #buildinpublic
14
9
162
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
Wait, what ??
Tweet media one
9
2
154
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
Some progress on my GitHub clone with @nextjs app router : - Hacked a cache component in my app with the help of @/lubieowoce - Using turbopack for dev now - Christmas decorations 🥳 inspired by 1/19 #buildinginpublic
3
3
109
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
@vercel announced @nextjs 13, and their tagline was : "dynamic at the speed of static", so i wanted to test myself to see if it holds true. By comparing a real next v13 app vs the @astrodotbuild website, and the result might suprise you : 👇
8
6
108
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
Week-end toy project : recreating the react router tutorial app, but with @nextjs app router. Using all the cool features : - edge runtime for absolute incredible perf - server actions with progressive enhancement - unstable_cache to not do unnecessary fetches
6
7
101
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
@webdevcody @nextjs This is why I always modify the default fetch cache in the root layout, to be either `default-cache` or `default-no-store`. This setting is propagated down to every page in app router, the 2nd value forces you to specify every fetch that you want to cache
2
5
95
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Been using @nextjs app directory with @tRPCio and it is just a match made in heaven 🤩. tRPC blurs BE and FE lines while app directory give me incredible DX with nested layouts 😍.
7
1
88
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Hey @nextjs team, i think you made a mistake here in the docs, you can't use a hook inside a server action. the link : cc @leeerob
Tweet media one
11
3
85
@fredkisss
Fredkisss 😘👨🏾‍💻
7 months
Who is this person there ? 🙃
Tweet media one
8
1
80
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
Some progress on my GitHub clone with next app router : PREVIEW ENVIRONMENTS kinda like vercel in a self hosted VPS setup. How does it work ? Let’s dive in… 1/17
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
This Preview environment shit is so easy 😎
1
0
8
5
5
74
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
react `cache` primitive now works in client components. Fetching in client components is now way easier. Right now it does not have many niceties of libs like react-query, but i think this could be something that is used under the hood, and write something like the 2nd picture
Tweet media one
Tweet media two
@jherr
Jack Herrington
1 year
Does the new cache function in React save the use hook we were so excited about a couple of months back? Let's see!
2
4
29
5
7
73
@fredkisss
Fredkisss 😘👨🏾‍💻
11 months
@trunarla Right ? For me School introduced me to some concepts I wouldn’t have known if I didn’t look (things like networking, how the OS works, etc) but most of the things I use daily I learnt them by myself on side projects.
5
3
71
@fredkisss
Fredkisss 😘👨🏾‍💻
7 months
@pilcrowonpaper Didn’t you know that experimental = ship it in production ?
3
0
68
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
The name is… @ThePrimeagen 🫵
Tweet media one
5
2
69
@fredkisss
Fredkisss 😘👨🏾‍💻
9 months
What ? an ad while creating a commit on a repo ?
Tweet media one
14
3
59
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
Updated my github clone to use the new Geist font, can you spot the difference ? - left Geist, right Inter (also next 14)
4
0
61
@fredkisss
Fredkisss 😘👨🏾‍💻
1 month
Does @antfu7 ever sleeps ? Because damn...
Tweet media one
Tweet media two
Tweet media three
3
1
60
@fredkisss
Fredkisss 😘👨🏾‍💻
2 months
I am once again asking you to just buy a VPS for 5$ a month, you can host as many DBs as you like and even host your entire startup in it. Scaling, you ask ? you don't need to think about it, we both know you don't have any users 😛
@PlanetScale
PlanetScale
2 months
An update from us:
196
53
389
8
3
56
@fredkisss
Fredkisss 😘👨🏾‍💻
2 years
@TheJackForge Relatable, but for me it’s because of 3 reasons : 1- I’m an introvert and I prefer a job that doesn’t require many social interactions 2- I like highly focused activities that helps me forget everything around me 3- money 🤑
4
2
51
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Things holding me back from using @remix_run : - no SSG - no 1st party image optimization - no 1st party font optimization - Cannot add <link rel="canonical" href="<url>" /> for SEO (seriously why ?) ⁻ ᵗʰᵉ ᵈʳᵃᵐᵃ
8
1
54
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
TIL that @nextjs 13 router uses redux
Tweet media one
4
2
54
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
These two weeks have been very productive on the progresssion on my github clone with @nextjs app router : - swapped pnpm for @bunjavascript - The search feature is completely finished and now works with a snapshot of 100+ of the most commented issues of 2023 in the nextjs repo
3
2
49
@fredkisss
Fredkisss 😘👨🏾‍💻
9 months
One of my biggest pain points about nextjs caching has finally been recognized and a new proposal to fix it has been made. It will take time to implement it, but I’m just happy this is on the roadmap and has not been dismissed. 😌🙏
2
6
47
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
@puruvjdev To do calculations (with money) it is better not to deal with decimals, and rather multiply by 100 for money to make calculations in cents. You can convert later to dollars by dividing by 100
11
1
46
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
They say @nextjs app router is stable, but there are still weird bugs with parallel and interception routes, should we consider them as experimental or alpha like server actions ?
6
1
46
@fredkisss
Fredkisss 😘👨🏾‍💻
2 months
@pilcrowonpaper If most of your routes are protected, repeating it everywhere is annoying and prone to human error, that’s why you use middleware. Also middleware can also be applied on a route basis or to a group of routes.
1
0
44
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
Everyone : bun is totally gonna replace node Me : bun —bun run dev > Attempt to export a nullable value for "TextDecoderStream" Me : 😕 Me : *continue using node anyway*
4
0
43
@fredkisss
Fredkisss 😘👨🏾‍💻
4 months
@emilkowalski_ Did he just get an orgasm ? 😅
1
0
41
@fredkisss
Fredkisss 😘👨🏾‍💻
1 month
@dobroslav_dev Do you want to handle all of the government traffic or what ? 😅
1
0
42
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
It is starting to look more like it 👀
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
Working on my biggest toy app with @nextjs App Router : a clone of GitHub but with only the issues and notifications functionalities. My stack : - @tursodatabase + @DrizzleOrm - @tailwindcss - hosted on @CloudfareDev #buildinginpublic
2
4
23
5
0
41
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Ok after reading this, I am more convinced about why the @reactjs team pushes towards frameworks. Big fat client apps can become just unbearably slow because of the code size, and achieving good code splitting can be hard.
Tweet media one
3
2
38
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
In tanstack query, is there a way to limit the number of queries that can run at any time globally ? Like If i have an app that can potentially make a 1000 of requests but I want only 100 of them to run in parallel while the other wait showing a isFetching/isLoading to the dev.
8
1
34
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
@nakedMCSE @PR0GRAMMERHUM0R while True : for hours in range(0,23): for minutes in range(0,59): for seconds in range(0,59): time.sleep(1)
0
3
35
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
I did not think about it, but it is a really cool idea to use Astro to build a SPA and if you want some static pages (for your blog or landing page for ex) just put it there. Bonus with this : no need for a server, everything could be statically hosted ! Pretty cool stuff !
Tweet media one
2
7
33
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Hello #twitter , aujourd'hui après plusieurs mois de code in the dark, je vous présente kiss-cam, un outil qui permet aux créateurs de pouvoir passer des appels avec des invités pour des vidéos, interviews et shows en live Le lien pour y accéder👉
5
7
29
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Ok server actions are cool, progressively enhanced and all, but I don’t see anyone talking about validation. The recommended way seems to throw an error, but this blows up the rendering instead. Validation is a necessity in form handling or not ?
Tweet media one
4
1
28
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
The `action` prop in forms in React canary is so damn convenient, so much unnecessary code removed, and I don’t even use server actions (just a Vite client-only SPA). I will surely use the hell out of form hooks in my code, useFormStatus, useFormState, useOptimistic.
4
3
27
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
@alexsoyes Déjà testé, mais ça bouffe trop de ressources sur ma machine, j’ai jamais pu à faire tourner responsively, Firefox/chrome et VSCode en même temps
0
0
0
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Let’s face it, @solid_js and @reactjs are two totally different framework/libs with totally different mental models. The only common thing they have is that they use JSX. You can’t expect to transition from one to another without rewriting your mental model 1/n
1
1
25
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
Also reminder that this project is open source, if you tested the app and stumbled upon bugs, please open issues in the repo, I will make sure to resolve them as fast as possible. Also, if you’d like to contribute to the repo, I’ve made issues for it :
Tweet media one
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
These two weeks have been very productive on the progresssion on my github clone with @nextjs app router : - swapped pnpm for @bunjavascript - The search feature is completely finished and now works with a snapshot of 100+ of the most commented issues of 2023 in the nextjs repo
3
2
49
0
4
23
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
We are pretty lucky to be honest 🙏
Tweet media one
2
1
23
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
@jamonholmgren You mean *strict* opinions about TypeScript ? 😅
5
0
23
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
Working on my biggest toy app with @nextjs App Router : a clone of GitHub but with only the issues and notifications functionalities. My stack : - @tursodatabase + @DrizzleOrm - @tailwindcss - hosted on @CloudfareDev #buildinginpublic
2
4
23
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
Was all in on @prisma before but after watching @ThePrimeagen & @MelkeyDev stream on how many layers it runs, i am now friends with drizzle. (Maybe until another one comes and steal my heart 😅)
Tweet media one
3
1
22
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
@cramforce If their usage is not to be primary used within forms, then make their default behavior to be ran in parallel instead of sequentially 😕, most client-server communication within apps aren't blocking especially in an app like twitter that is very responsive.
1
0
22
@fredkisss
Fredkisss 😘👨🏾‍💻
7 months
This week's progress on the github clone with next app router : - I changed the design of the search input to better highlight the current search tokens - i also removed the auto submit on search, now you have to manually confirm your input before submitting #buildinpublic
2
1
21
@fredkisss
Fredkisss 😘👨🏾‍💻
4 months
Balloon day 👀
Tweet media one
11
0
22
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
@buildsghost I recommend it has more than 1000+ icons coming in multiple styles and with different FW adapters (vue, react, etc), you can also copy directly the SVG from the site. I use it intensively on my apps
2
0
22
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Upgraded this example with the latest next canary and now i can just return JSX for the popup inside an action. This is pretty cool for implementing patterns like twitter & github hovercards. Bonus point : no extra JS shipped for the component
Tweet media one
Tweet media two
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Made a little experiment today with next : i wanted to see how easy it was to implement a twitter hover card without any api. turn out it was really easy, bonus point i used the same component for the client & the server for the pokemon detail link :
1
0
8
3
5
22
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
You don’t know how excited I am to read this. 😄
Tweet media one
1
0
22
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
Tweet media one
1
0
22
@fredkisss
Fredkisss 😘👨🏾‍💻
9 months
*everyone (me) cheered*
Tweet media one
0
2
21
@fredkisss
Fredkisss 😘👨🏾‍💻
4 months
WoW tldraw blew my mind by actually being usable on mobile without too much pain 🤯. A testament to caring about user experience even for the users you don’t expect to use your app regularly.
Tweet media one
0
1
19
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Oh maybe it is a bug, since you can't navigate between pages when the actions are running, is it supposed to do that ? 🤔
2
0
20
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Today i've seen something exciting coming to the @reactjs website 👀 I'm not going to disclose the URL but if you search in the reactjs docs repo you could find it
1
2
20
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
So what are you waiting ? Go try @nextjs 13 today, and if you don't know where to start or just look for inspiration, go check out the app i tested, it's a great example of an app made with all the new nextjs sweet features. made by @shadcn
1
3
20
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
I don’t know if I am wrong but it seems to me that the @vercel dashboard has now been fully migrated to app router, I would like to see a post mortem of this migration, the pain points, the benefits, the patterns discovered along, etc There are definitely things to learn from it
1
0
17
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
Oh you don’t want to use this lib because it weighs 100kb ? What about your 5Mb images that isn’t even lazy loaded ?
2
2
18
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
@lexswed This was already attempted but dropped because it didn’t work with prop destructuring
1
0
19
@fredkisss
Fredkisss 😘👨🏾‍💻
3 years
@Horikoshi_Art I never considered deku's multiple quirks manifestation as awakening but this gives me a new perspective 🤔
0
0
19
@fredkisss
Fredkisss 😘👨🏾‍💻
13 days
@AdamRackis @jjenzz @mikeour @fridayfrontend @samselikoff For the breadcrumb example, you do : `@ breadcrumbs/[…paths]/page.tsx` and in your layout : function Layout({ breadcrumbs, children }) { return ( <main> {breadcrumbs} {children} </main> )} From the breadcrumbs page paths will contains all the routes segments
5
0
19
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Could the docs around cache invalidations in @nextjs (with ISR, revalidate methods and client side router cache) be more detailled ? Today I just learned that you have to call `/dynamic-path/[id]` instead of `/dynamic-path/1` to issue a revalidation of a dynamic segment.
2
0
18
@fredkisss
Fredkisss 😘👨🏾‍💻
4 months
New year, new man, new haircut 😏
Tweet media one
Tweet media two
2
0
18
@fredkisss
Fredkisss 😘👨🏾‍💻
2 months
Handsome man Jumpscare !!
Tweet media one
3
0
18
@fredkisss
Fredkisss 😘👨🏾‍💻
7 months
I hate @DrizzleORM because it is so easy to convert from SQL to drizzle, like how dare you have so close to SQL and still be typesafe ? 😠 Do you need to be so damn enjoyable to work with ?
2
1
17
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
I GOT IT WORKING BABY 🥳 ! A cached server component with `unstable_cache`, containing a client component. thanks to @lubieowoce for giving me a BIG headstart for how it could work 🙏. link to code : DISCLAIMER : __DO_NOT_USE_OR_YOU_WILL_BE_FIRED !!!
Tweet media one
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
Does anyone have any idea how i could cache the output of some components ? (Server component especially) I have a <Markdown> component that can be slow or fast because it has to parse a string, do some DB queries, do some logic, and then return some JSX
7
1
2
3
0
17
@fredkisss
Fredkisss 😘👨🏾‍💻
2 years
@Steve8708 You can have automatic deduplication if you you use pnpm instead of yarn or npm
2
1
17
@fredkisss
Fredkisss 😘👨🏾‍💻
7 months
Found this cool PR on the react repo : "Taint APIs" : In summary, It introduces APIs to block some values to be sent to the client, like an API KEY (stripe API KEY for ex), you can mark the value as tainted and it will error if it ends up in the client.
1
6
17
@fredkisss
Fredkisss 😘👨🏾‍💻
1 month
Glad to be finished with school FOREVER !!
Tweet media one
@fredkisss
Fredkisss 😘👨🏾‍💻
1 month
Wingardium Leviosa
Tweet media one
Tweet media two
3
0
10
3
1
16
@fredkisss
Fredkisss 😘👨🏾‍💻
9 months
@FredKSchott most of these are 3rd party services per se, but OSS libs.
1
0
16
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
This is by far one of most exciting PRs in nextjs 😁, If this is stable, that means that other providers can use this to setup the nextjs data-cache using their own KV solution with ease. →
Tweet media one
2
2
16
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
Man building an app front to back is not easy, especially when you are dealing with a complex UI, that also needs a complex backend. Like this search dropdown is very complex with so many filters and many syntax variants, the (SQL) search query it generates also is very complex.
1
1
16
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Me with @nextjs appDir and an experimental @trpcio package 😅
@kentcdodds
Kent C. Dodds 🌌
1 year
Tweet media one
16
115
1K
1
1
16
@fredkisss
Fredkisss 😘👨🏾‍💻
4 months
@pilcrowonpaper Why ? Don’t you like money ? PHP devs use $$ everywhere and they have all the lambos of the world /j
0
0
15
@fredkisss
Fredkisss 😘👨🏾‍💻
10 months
@Riyaadh_Abr @TkDodo That is because you can return components in server actions.
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
Upgraded this example with the latest next canary and now i can just return JSX for the popup inside an action. This is pretty cool for implementing patterns like twitter & github hovercards. Bonus point : no extra JS shipped for the component
Tweet media one
Tweet media two
3
5
22
1
1
16
@fredkisss
Fredkisss 😘👨🏾‍💻
8 months
@asidorenko_ One thing : Don’t replace action with a client action in the form or you will loose progressive enhancement, keep the action prop and do your logic inside onSubmit (with e.preventDefault) and build the formData to send to your action with `new FormData(e.currentTarget)`
1
0
15
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
My frontend people who started w/ react and other FW, how did you handle client side forms before the coming of "progressive enhanced" FW ? Didn't you use a <form> component whenever possible ? Or did you use something else ?
6
0
15
@fredkisss
Fredkisss 😘👨🏾‍💻
6 months
One useful pattern that is interesting with server actions is higher order functions, you can use them as some sort of middleware or validation layer, so that you don't repeat that logic inside of your action. With one line, i can add authentication & authorization to an action
Tweet media one
Tweet media two
Tweet media three
2
2
15
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
We don’t hear a lot about the team that works on the backend of the @vercel dashboard and in general on the infrastructure of vercel. 🤔
3
0
15
@fredkisss
Fredkisss 😘👨🏾‍💻
3 months
I’ve decided to start yet another project, this one more involved, still not commercial (because I don’t like the stress and responsibilities of doing so) but that I would like to use for other projects, so what is it ? A PaaS for self hosting your apps #buildinginpublic 1/
4
1
15
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
@mhevery There are libs that use contexts with an external cache (take zustand or react-query) that already solve prop-drilling. Sure they don’t act like signals with in place updating of the HTML, but they help with rendering only the component that needs it.
1
0
14
@fredkisss
Fredkisss 😘👨🏾‍💻
5 months
React form (client/server) actions + useFormState + zod = ❤️ Handling forms without tracking every input is just so simpler, and actually enjoyable for once 😅
3
0
14
@fredkisss
Fredkisss 😘👨🏾‍💻
9 months
I just like how this turned out.
Tweet media one
2
0
14
@fredkisss
Fredkisss 😘👨🏾‍💻
7 months
This was long awaited, i've been using server actions for a long time everywhere in my apps. They are just such a great abstraction for mutations and even data-fetching, they work great with React-Query and the icing on top : you put them in a form and you have PE for free 😁
@reactjs
React
7 months
Server Actions are now in React Canary, ready for frameworks and libraries to adopt! Server Actions are functions created alongside your components that run on the server for tasks like data mutations
Tweet media one
98
467
3K
2
2
14
@fredkisss
Fredkisss 😘👨🏾‍💻
1 year
@delba_oliveira @nextjs redux devtools can work without redux ? That's another thing i learned 😮
3
0
14