Skip to content

How to map state using composition API? #1307

Closed Answered by posva
martinszeltins asked this question in Help and Questions
Discussion options

You must be logged in to vote

You could just use a computed:

const settings = useSettingsStore()

// other computed
const logoSrc = computed(() => settings.settings.designSettings.logo)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@martinszeltins
Comment options

@posva
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
0 replies
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
3 participants