Ayush Seth (@ayush_src) profile picture

Frontend @spotdrafthq, experienced in both react and angular.

Bengaluru
Joined November 2022
Photo by Ayush Seth (@ayush_src)Photo by Ayush Seth (@ayush_src)Photo by Ayush Seth (@ayush_src)Photo by Ayush Seth (@ayush_src)Photo by Ayush Seth (@ayush_src)Photo by Ayush Seth (@ayush_src)
Here's a custom query hook generator I wrote using @clerk auth with @tan_stack query to make authenticated requests to your custom backend. It lets you pass in a @zodtypes schema to type-check the api response and you also get great autocomplete when using the query
1
2
1
29
4,234
Just registered for JetBrains #JavaScriptDay2025. Join me on Oct 2! lp.jetbrains.com/javascript-…
1
1
79
Ayush Seth retweeted
Replying to @thdxr
I think you should be able to articulate a meaningful way your solution could be better than an alternative before going too deep on a project
1
1
23
1,641
Ayush Seth retweeted
Replying to @Julien_Delort
you can do that in the global handler, too. It has access to `data` from the query, and the whole query itself, so the `meta` field is pretty powerful here: teapawt.org/TkDodo/status/16474930…
Replying to @songil
you can use your useVouchers() hook multiple times, in different components though ? One trick is to set the `meta` field to contain the message that you want, and let the global handler pick that up:
2
1
12
1,323
when you write javascript you are writing tech debt
128
131
44
1,695
173,175
“I don’t see the point in using TypeScript”
39
97
20
1,392
159,798
You can use it like any other query hook with all the types being inferred correctly from the zod schema you provided
1
2
233
Here is the source code for the generator function gist.github.com/ayush-seth/7…
6
230
2,139
24,902
2,840
359,729
25,975,706
Ayush Seth retweeted
Replying to @bubalodev
I'm just a UI library I don't have $8
87
367
88
3,717
231,320
I just watched the demo for @clerk and it blew my mind! It is literally "drop-in" authentication for your react apps.
1
5
320
35
42
2
754
59,182
Just published the solution for day 2 of Advent of Code. Day 2's problem is a good excercise to learn how you can reduce cyclomatic complexity in your code using dictionaries in a smart way. #AdventOfCode #AdventOfCode2022 #AdventCalendar github.com/ayush-seth/aoc-20…
80% programmers use VS Code. But their Productivity Suck. Here are the top 8 VS code extensions to take your productivity to next level. A Thread🧵👇
72
88
10
821
Ayush Seth retweeted
i think neovim builtin lsp + mason.nvim (if you want auto install) is pretty seamless experience. you could checkout github.com/nvim-lua/kickstar… as an example starter config that sets a bunch of this up
6
6
1
73
"sure an n^2 solution works, but can you come up with something a little faster?"
14
90
12
991
Sneaky designers…
23
340
23
2,620