Vue 3 Typescript Tutorial - Basic user login flow with Typescript and Vue 3

  Рет қаралды 31,168

Justin Brooks

Justin Brooks

Күн бұрын

Пікірлер: 17
@devops-sushi5534
@devops-sushi5534 Жыл бұрын
Brilliant - just the right amount of information. Nothing more, nothing less! 💯
@JH-lc4kt
@JH-lc4kt Жыл бұрын
why did you create your own store, but not use an already existing some? vuex/pinia?
@Gummiball
@Gummiball 3 жыл бұрын
Nice tutorial. Sometimes too fast and "jumpy".
@CodingWithJustin
@CodingWithJustin 3 жыл бұрын
Thanks for the feedback! Could you elaborate more? I would like to my content the best I can
@Gummiball
@Gummiball 3 жыл бұрын
@@CodingWithJustin You code something "behind" the video and it is not so easy to follow. Example: - Setup project with vue-cli -> after selecting "TypeScript" you just jump straight to the code. - You paste code from the clipboard -> better type it for us and explain what you do. Otherwise keep up the good work, have learned a lot.
@antoniapettersson543
@antoniapettersson543 2 жыл бұрын
do you have a video of this , but step by step ?
@damianperez7736
@damianperez7736 3 жыл бұрын
Really nice video On min 5:37, can you explain a little bit how does line 2 work?
@MrChickenpoulet
@MrChickenpoulet 3 жыл бұрын
hey, it means that the type UserList is an array containing objects of type User with an extra field password of type string, the `&` here is used to merge type really convenient when you dont want to create an extra type like in this case www.typescriptlang.org/play?#code/C4TwDgpgBAqgzhATlAvFA3lAdgQwLYQBcUcwiAllgOYDcUArgorgcaRdQL4BQoksTADLlSqKAEFEiHCAA88JFABkGKGBxw4AdwD2iACZsylKlE4A+btwDGOrKIA2I4MQWJhotAG1uUPxl9-IJYiKAByACk7MIAaQKC-RiQQ4jCAK2i4hP91TV0DVIBGACYAZgBHLQgw+LNuAF0rIA
@damianperez7736
@damianperez7736 3 жыл бұрын
@@MrChickenpoulet Thank you man, that's some next level TS for me
@zinaright
@zinaright 2 жыл бұрын
Not specific enough, but flows well
@overnightmares
@overnightmares 3 жыл бұрын
that "inc" action mutating the store? shouldn't it be a mutation instead?
@UGNetworks
@UGNetworks 3 жыл бұрын
He's not using vuex
@damianperez7736
@damianperez7736 3 жыл бұрын
I have another doubt, on min 5:33, how does TS know that on line 12, the result of "await request.json() is gonna be of type User? magic?
@CodingWithJustin
@CodingWithJustin 3 жыл бұрын
It doesn't, the return of "await request.json()" is any. I use variable declaration "const user: User" to say its a user type.
@chrisperez8789
@chrisperez8789 3 жыл бұрын
So u are not using vuex at all? I like the symplicity. But I'm not sure if I will miss the dev tools vuex stuff for debugging. That's a really plus for using vuex
@CodingWithJustin
@CodingWithJustin 3 жыл бұрын
Current Vuex + typescript is a mess. Check out my other tutorial where I go over this in more detial. But in large scale projects I still use Vuex.
@joaosousa5641
@joaosousa5641 2 жыл бұрын
a have an error here:import userStore from '@/store/user' io dont see where you exported it
What are my thoughts on Vue3
25:21
Web Dev Cody
Рет қаралды 11 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 132 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 37 МЛН
Vuex Basics in Vue 3 with Composition API in 6 minutes
6:26
Justin Brooks
Рет қаралды 22 М.
Vue Tutorial: Using Vuex with TypeScript
27:53
OverSeas Media
Рет қаралды 27 М.
Build with Ben: Vue 3 and TypeScript Working Session
1:16:32
BenCodeZen
Рет қаралды 23 М.
Learn Vite with Evan You
13:35
Vue Mastery
Рет қаралды 265 М.
Vue 3 Composition API Introduction [FULL TUTORIAL]
23:46
Academind
Рет қаралды 175 М.
Stop Using .value with ref In Vue 3! Reactivity Transformed Explained!
14:22
TypeScript in React - COMPLETE Tutorial (Crash Course)
53:21
ByteGrad
Рет қаралды 250 М.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Josh tried coding
Рет қаралды 212 М.
Daniel Kelly - TypeScript with Vue.js 3 - Vuejs Amsterdam 2023
20:05
JSWORLD Conference
Рет қаралды 1,7 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН