Skip to content

Need help for correct way to update props #369

Answered by NetanelBasal
pdsavard asked this question in Q&A
Discussion options

You must be logged in to vote
updateModulePerm(permModule: PermModule) {
    authStore.update((state) => ({
        ...state,
        loggedUser: { 
            ...state.loggedUser,
            modules: permModule.modules,
            permissions: permModule.permissions
        }
    }));
}

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pdsavard
Comment options

You must be logged in to vote
6 replies
@pdsavard
Comment options

@pdsavard
Comment options

@NetanelBasal
Comment options

@pdsavard
Comment options

@NetanelBasal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants