use a vuex property in multiple components (existing Qausar SPA)
This is a test job with a fixed price for a long term cooperation.
Our SPA web jobwizard allows to register/login. It stores a HAS_AUTH property in a vuex4. There is a problem accessing the property in different components.
you can reproduce the problem by clone the repo, switch to a the branch has_auth_in_different_components
and point your browser to StepFour
git clone https://gitlab.com/yawik/jobwizard.git
cd jobwizard/
git checkout has_auth_in_different_components
yarn & yarn dev
Error Message
runtime-core.esm-bundler.js:6551 [Vue warn]: Computed property "HAS_AUTH" is already defined in Methods.
at <Wizard onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > toolbar=true >
at <BaseTransition mode="out-in" appear=true persisted=false ... >
at <Transition name="fade" appear="" mode="out-in" >
at <RouterView>
at <QPageContainer style= Object >
at <QLayout view="lHh Lpr lFf" class="yawik" >
at <MainLayout onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
at <RouterView>
at <App>
warn @ runtime-core.esm-bundler.js:6551
Screens
Edited by Carsten Bleek