Oddzielanie dispatch od state w contexcie. Wiadomo ma zalety, mniejszy reRedner.
Nie mam pojęcia jak to powinno wyglądać w kodzie przy takim schemacie:
State1a State1b dispatch, dispatch, dispatch, tu miałem useReducera ale też chce mieć state1a i state1b w osobnym contexcie
State2 dispatch dispatch tu mogę mieć useState i chce mieć state2 w osobnym contexcie.
Nie mam pojęcia jak to powinno wyglądać w kodzie przy takim schemacie:
State1a State1b dispatch, dispatch, dispatch, tu miałem useReducera ale też chce mieć state1a i state1b w osobnym contexcie
State2 dispatch dispatch tu mogę mieć useState i chce mieć state2 w osobnym contexcie.
@Sinity: oczywiście, murzyni o 50pkt za wysoko xd