WebSocket и RTK Query: живое общение в React-приложении
Представьте, что вы смотрите онлайн-трансляцию матча. Счёт меняется — и вы видите это мгновенно , без перезагрузки страницы. Или вы пишете коллеге в чате — сообщение появляется у него в реальном времени . Это не магия, а технология WebSocket . В этом уроке вы узнаете:
https://habr.com/ru/articles/992526/
#rtk_query #state_management #reduxtoolkit #redux_toolkit #reduxutils #reduxjs #redux #websocket #react #echo
Just upgraded @reduxjs/toolkit to 2.0.1 and ran into: "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead"
Wiskey! Tango! Foxtrot!
Rationale here:
https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0
"works much better with TypeScript." doesn't carry much weight with me and I rather liked the old syntax. Found it compact and readable.
Sigh!