Загрузка страницы

How to Use the Vue 3 Composition API for Global State Management (without Vuex)

Vue 3 brings a new feature for global state management - the Composition API. The Composition API in VueJS 3.0 can serve as an excellent alternative to Vuex for light state management. This Vue 3 tutorial demonstrates how to export a component's state into a separate composable module so it can be imported anywhere where reusable functionalities need to be accessed. This video also discusses setting up global state management with the Composition API and Vue JS 3 Hooks and shares best practices for using and managing Refs, toRefs, Reactive, Users, and more.

You can see this entire example in GitHub:
https://github.com/moduslabs/vue3-global-hooks-example

Modus Labs: https://labs.moduscreate.com/

Timestamps:

0:27 Introduction

1:03 Vue 3 Composition API vs. Vuex

2:10 Using Refs

6:42 Async load and Async Await

7:42 Using Reactive

8:40 Importing and using toRefs

Grgur on Social Media:
Twitter: https://bit.ly/2Q7Y5tv
LinkedIn: https://bit.ly/2PEEbqW
GitHub: https://bit.ly/2MaOVuU

Modus Create is a trusted Vue.js partner helping global organizations build great user experiences. Learn more about our partnership: https://moduscreate.com/partners/vue/

Subscribe to the Modus Create YouTube Channel to get more insights about creating world-class web applications: http://mdus.co/subscribe

Modus Create maintains an active blog on web development, customer experience, and product management. Check it out: https://moduscreate.com/blog

Modus is hiring and has a number of openings on our engineering team. Ready to transform your career? Check out these positions and apply today!

Apply for Back End Engineer - (Node, AWS Lambda & DynamoDB, GraphQL, Apollo): https://grnh.se/83ced13f3us
Apply for Back End Engineer (Python / Panda): https://grnh.se/42567b953us
Apply for Back End Engineer (WordPress): https://grnh.se/f0b655a43us
Apply for Front End Engineer (ExtJS): https://grnh.se/f93998673us
Apply for Front End Engineer (React): https://grnh.se/f3733b293us
Apply for Front End Engineer / Tech Lead (React Native Web):
Apply for Architect (Node, React, AWS): https://grnh.se/c73654c63us
Apply for Full Stack Engineer (React, Node, AWS): https://grnh.se/cdc63a833us
Apply for Full Stack Engineer (Javascript, Ruby): https://grnh.se/fa7370513us

Modus Create is a disruptive consulting firm that helps companies transform for success in the digital future through a unique collaborative engagement model that focuses on strategy, product design/build, user experience, company culture, and process change.

https://moduscreate.com

#Vue #Vue3 #VueJS #VueCompositionAPI #VueComposition

Видео How to Use the Vue 3 Composition API for Global State Management (without Vuex) канала Modus Create, Inc.
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
2 июля 2020 г. 22:00:21
00:09:59
Яндекс.Метрика