Ismayil Khayredinov
1 min readJul 20, 2019

--

Could you illustrate how to store state that could be used between multiple modules? I still don’t really understand how to store “static” values in FP. Do you just move the variable declaration from global to local state and return closure to access it? Maybe you could demonstrate it with the current user example. Thanks for the series, great stuff.

--

--

Ismayil Khayredinov
Ismayil Khayredinov

Written by Ismayil Khayredinov

Software engineer who combines optimism with pessimism to build robust and idiot-proof solutions

Responses (1)