Skip to content

How to get state variable from "A" slice in "B" slice? #54

Discussion options

You must be logged in to vote

We can think slice A as a module.
So we can export slice A and in slice B, we can import slice A.
with:
import sliceA from '../sliceB/sliceB.js"

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@shinevue
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by popstar7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #53 on August 18, 2024 19:18.