ย
ย
ย
ย
nuxtjs.org
nuxt.js๊ฐ Vuex ๊ตฌํํ๋ ํต์ฌ ์ด์ ๋, ์ ์ฅ์๋ฅผ ์ฌ์ฉํ์ฌ ์ํ๋ฅผ ๊ด๋ฆฌํ๋ ๊ฒ์ ๋ชจ๋ ๋ํ ์ ํ๋ฆฌ์ผ์ด์
์์ ์ค์ํ๊ธฐ ๋๋ฌธ์
๋๋ค. Nuxt.js๋ store ๋๋ ํ ๋ฆฌ๋ฅผ ๋ฐ๋ผ๋ณด๊ณ ์์ต๋๋ค. ๋ง์ฝ store ๋๋ ํ ๋ฆฌ๊ฐ ์กด์ฌํ๋ค๋ฉด: Nuxt.js์์๋ 2๊ฐ์ง store ๋ชจ๋ ๋ฅผ ์ง์ํ๋ฉฐ, ์ ํธํ๋ ๋ชจ๋๋ฅผ ์ฌ์ฉํฉ๋๋ค: ํด๋์: store/index.js์์ store ์ธ์คํด์ค๋ฅผ return ํฉ๋๋ค. ๋ชจ๋: store ๋๋ ํ ๋ฆฌ ๋ด์ ๋ชจ๋ .js ํ์ผ์ด ๊ฐ์ ์ด๋ฆ์ ๋ชจ๋๋ก ๋ณํ๋ฉ๋๋ค.
https://ko.nuxtjs.org/guide/vuex-store/

๊ณ์ฐ๋ ์์ฑ(computed), ๊ฐ์์(watch) - hong's blog
์ด์ ์๊ฐ์ ๋ณต์กํ javascript ํํ์์ HTML ์ ๋ณด๊ฐ ๋ค์ด๊ฐ์ผํ๋ ๋ถ๋ถ๋ณด๋ค๋ vue์ธ์คํด์ค ์์์ ์ฒ๋ฆฌ๋ฅผ ํ๋๊ฒ์ด ์ข๋ค๊ณ ์ธ๊ธํ์ ์ด ์์๋ค. computed ์์ฑ์ ๊ทธ๋ฐ ์ฒ๋ฆฌ๋ฅผ ๋ด๋นํ๋ ๋ฐ์ดํฐ ์ฐ์ฐ๋ค์ ์ ์ํ๋ ์์ญ์ด๋ค. computed์ reversedMessage๊ฐ ํธ์ถ๋์ด ์๋์ ๊ฐ์ด ์ถ๋ ฅ๋๋ค ์์ computed ์์ฑ์ ์ฌ์ฉํ์๋์ methods ์์ฑ์ ์ฌ์ฉํ์๋ ๋ฌด์จ ์ฐจ์ด์ ์ด ์์๊น? ๋ผ๋ ์๋ฌธ์ ์ด ์๊ธฐ์ ๋ถ๋ค๋ ๊ณ์ค๊ฒ์ด๋ค. ๊ฒฐ๊ณผ๋ฌผ๋ง ๋๊ณ ๋ณด์๋ฉด ์ฐจ์ด๊ฐ ์๋ค. ํ๋ฒ ํ์ธํด๋ณด์.
http://hong.adfeel.info/frontend/%EA%B3%84%EC%82%B0%EB%90%9C-%EC%86%8D%EC%84%B1computed-%EA%B0%90%EC%8B%9C%EC%9E%90watch/

mapState, mapGetters ๊ทธ๋ฆฌ๊ณ computed์ ์ญํ ์ด ํผ๋์ค๋ฌ์์ - ์ธํ๋ฐ
์ง๋ฌธ - mapState, mapGetters ๊ทธ๋ฆฌ๊ณ computed์ ์ญํ ์ด ํผ๋์ค๋ฌ์์ ์๋
ํ์ธ์. ๊ฐ์ ์ ๋ฃ๊ณ ์์ต๋๋ค :) ๊ฐ์ ์ค์ this.$store.state.user ๋ถ๋ถ์ ์ค์ด๊ธฐ ์ํด computed๋ฅผ ์ฌ์ฉํ์๋ฉด์ ํ
ํ๋ฆฟ ๋ถ๋ถ ํ
์คํธ๋ฅผ ๊น๋ํ๊ฒ ํ๊ธฐ ์ํด computed๋ฅผ ๊ฑฐ์น๋ ๊ฒ์ Vue.js ๊ณต์๊ฐ์ด๋์ ๋์์๋ ๋ฐฉ์์ด๋ผ๊ณ ํ์
จ๋๋ฐ, ๊ทธ๋ฌ๋ฉด mapState๋ mapGetters๋ ์ธ์ ์จ์ผ ํ๋๊ฒ์ธ๊ฐ์?
https://www.inflearn.com/questions/11792

ย
Discussion: Removal of Vuex store "classic mode" ยท Issue #4912 ยท nuxt/nuxt.js
Dismiss GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up Assignees manniL changed the title Vuex store example outputs warning: Classic mode for store/ is deprecated and will be removed in Nuxt 3 Discussion: Removal of Vuex store "classic mode" Mar 14, 2019 You can't perform that action at this time.
https://github.com/nuxt/nuxt.js/issues/4912
ย
ย
ย
ย


Seonglae Cho