Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Fix BUG performLogin called multiple times #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 4, 2017

  1. Fix BUG performLogin called multiple times

    Since `enable` caused the policy function to be called for every action dispatched to the store, any action(s) dispatched after performLogin was called and before `state.cognito.state` transitioned from `LOGGING_IN` to something else caused `performLogin` to be called.
    
    To fix this bug the store subscription handler checks if `state.cognito.state` has changed and only calls the policy function if it has.
    Brandon Orther committed Dec 4, 2017
    Configuration menu
    Copy the full SHA
    63d34f7 View commit details
    Browse the repository at this point in the history