Skip to content

Instantly share code, notes, and snippets.

@engelcituk
Created December 15, 2020 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save engelcituk/1adfdafcd08d740fbd51e6e41cfb3e93 to your computer and use it in GitHub Desktop.
Save engelcituk/1adfdafcd08d740fbd51e6e41cfb3e93 to your computer and use it in GitHub Desktop.
Acceder a un estado desde otro modulo (ejemplos)
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