<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>201_steve.log</title>
        <link>https://velog.io/</link>
        <description></description>
        <lastBuildDate>Tue, 31 May 2022 14:21:22 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <copyright>Copyright (C) 2019. 201_steve.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/201_steve" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[redux createStore deprecated ?!]]></title>
            <link>https://velog.io/@201_steve/redux-createStore-deprecated</link>
            <guid>https://velog.io/@201_steve/redux-createStore-deprecated</guid>
            <pubDate>Tue, 31 May 2022 14:21:22 GMT</pubDate>
            <description><![CDATA[<p>redux 연습해보겠다고 store 부터 만드려는데
redux에서 제공하는 createStore에 대뜸 취소선이 그어졌다.<img src="https://velog.velcdn.com/images/201_steve/post/8196647b-f848-4e1e-95e6-0b8272e429a6/image.png" alt=""></p>
<p>그리고 마우스 hover 했더니 @reduxjs/toolkit에서 제공하는 configureStore로 쓰라고 한다.</p>
<h1 id="결론">결론</h1>
<p><strong><em>deprecated인 것 처럼 해놨음. 잘 동작함. 그런데 RTK 쓰는걸 권장함.</em></strong></p>
<p>바로 redux 공식문서로 호다닥 뛰어가서 <a href="https://github.com/reduxjs/redux/releases">redux github</a> 뒤져봤더니 </p>
<p><em>WE ARE NOT GOING TO ACTUALLY REMOVE THE createStore API, AND ALL YOUR EXISTING CODE WILL STILL CONTINUE TO WORK AS-IS!</em></p>
<p><strong>우리는 createStore API를 실제로 제거하지 않을 것이며 기존의 모든 코드는 여전히 그대로 계속 작동할 것입니다</strong></p>
<p><em>Again, no broken code, and no runtime warnings.</em>
<strong>다시 말하지만, 코드 이상없고, 런타임경고도 없습니다.</strong></p>
<p><em>If users do not want to see that strikethrough, they have three options:</em>
<strong>취소선 보고싶지않다면 3가지 옵션이 있어요</strong></p>
<p><em>1. Follow our suggestion to switch over to Redux Toolkit and <a href="https://redux-toolkit.js.org/api/configureStore">configureStore</a></em>
<strong>우리 제안대로 RTK configureStore 쓰거나</strong></p>
<p><em>2. Do nothing. It&#39;s just a visual strikethrough, and it doesn&#39;t affect how your code behaves. Ignore it.</em>
<strong>아무것도 하지마요. 그냥 취소선일뿐이니까 코드에는 아무런 영향도없어요 무시해요</strong></p>
<p><em>3. Switch to using the legacy_createStore API that is now exported, which is the exact same function but with no @deprecation tag. The simplest option is to do an aliased import rename:</em>
*<em>이렇게 이름만 바꿔서 써요. deprecated 표시는 없으니까. <img src="https://velog.velcdn.com/images/201_steve/post/e074fe28-1085-4e44-991e-917ba3cdeccf/image.png" alt=""> *</em></p>
]]></description>
        </item>
    </channel>
</rss>