Sign in

A rook_ie craving to become a bishop.

Realtime database from Firebase is very convenient, because all you need to do is subscribe to a collection and it will listen for all changes, passing to you the updated state. Redux toolkit is another convenient tool with a magic createAsyncThunk that’ll make working with asynchronous code a bliss. How lucky we are? Everything’s been done for us and now we can simply fill the templates. I’d love if everything was that easy. However, createAsyncThunk isn’t designed to work properly with such case as ours and I want to introduce the way how I implement the needed code.

First of…


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store