Skip to content

Ht2 Smotrova Lilit#11

Open
SmotrovaLilit wants to merge 3 commits intoromabelka:masterfrom
SmotrovaLilit:ht2
Open

Ht2 Smotrova Lilit#11
SmotrovaLilit wants to merge 3 commits intoromabelka:masterfrom
SmotrovaLilit:ht2

Conversation

@SmotrovaLilit
Copy link

No description provided.

@@ -0,0 +1,158 @@
import { call, put, take, apply } from 'redux-saga/effects'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно бы еще редюсер протестить

const eventsRef = firebase.database().ref('/events')
try {
const eventsResponse = yield call([eventsRef, eventsRef.once], 'value')
const events = Immutable.Map(eventsResponse.val()).reduce(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы такое в редюсере делал, а еще лучше - так бы и хранил

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants