Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix frozen "Loading ..." message #430

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Fix frozen "Loading ..." message #430

merged 1 commit into from
Nov 28, 2017

Conversation

mareklibra
Copy link
Contributor

@mareklibra mareklibra commented Nov 21, 2017

@jelkosz
Copy link
Contributor

jelkosz commented Nov 28, 2017

LGTM 🐛

Copy link
Contributor

@jniederm jniederm left a comment

Choose a reason for hiding this comment

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

LGTM

Based on offline communication the main goal of this patch is

  • refresh action are throttled
  • 1min refresh is re-executed when previous cycle finished
  • logging added

export const actionReducer = (initialState, handlers, verbose) => (state = initialState, action) => {
if (verbose) {
let actionJson = JSON.stringify(action)
if (actionJson.length > 250) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I personally prefer && to nested if statements.

@mareklibra mareklibra merged commit 801b558 into master Nov 28, 2017
@mareklibra mareklibra deleted the fixUnfishedLoading branch July 27, 2018 06:27
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.

4 participants