Giter Club home page Giter Club logo

redux-profiler's People

Contributors

bhovhannes avatar hreflee avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hreflee oyeshampy

redux-profiler's Issues

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

This repository currently has no open or pending branches.


  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Performance api throws error when trigger a same action in an action effect

The following calling path will trigger a Failed to execute 'measure' on 'Performance': The mark 'xxx:0:start' does not exist error in redux-profiler. I create a example to show this bug in https://codesandbox.io/s/quiet-leaf-35b88 :

  1. Click "bugAdd" and trigger a thunk action asyncAdd
  2. asyncAdd trigger action syncAdd
  3. The change in store made by syncAdd trigger a effect in Helper.jsx
  4. Effect in Helper.jsx trigger syncAdd
  5. Error shows

How to see the results of the profiler?

Thank you for your redux profiler that looks really interesting.

I do not understand how to look at the results though.
Is it the React Dev Tool or in another location?

Thank you a lot!

`performance.mark` is not always available

Despite having a good adoption by the current browsers, sometimes performance.mark is still unavailable in some environments.

In my case, it is not available in my test environment leading to a crash of some of my units tests. It looks like it is due to the fake timers of Jest that remove the performance.mark function. (I wanted to create a codesandbox to show the problem but we cannot use the jest fake timers in codesandbox).

It would be nice to check if performance.mark really exists before calling it and therefore avoid raising an error.

For example, here's the error I get:

Test suite failed to run

    TypeError: performance.mark is not a function

      40 | epicMiddleware.run(rootEpic);
      41 |
    > 42 | store.dispatch(initAction());
         |       ^
      43 |
      44 | export default store;
      45 |

      at performProfiledOperation (node_modules/redux-profiler/dist/redux-profiler.umd.js:145:21)
      at Object.dispatch (node_modules/redux-profiler/dist/redux-profiler.umd.js:203:21)
      at Object.<anonymous> (src/store/index.ts:42:7)
      at Object.<anonymous> (src/components/XanonymizationX.test.tsx:6:1)

What do you think? (if needed, I can send a PR)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.