-
-
Save engelcituk/1adfdafcd08d740fbd51e6e41cfb3e93 to your computer and use it in GitHub Desktop.
Acceder a un estado desde otro modulo (ejemplos)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { cliente } = context.rootState.cart //busco en cart el objeto cliente, donde cart es el modulo | |
const {idUser, name, lastname } = context.rootState.auth.user //contexto para acceder a los datos del usuario (modulo auth) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment