bhovhannes / redux-profiler Goto Github PK
View Code? Open in Web Editor NEWA Redux store enhancer which uses User Timing API to profile redux actions and time spent on notifying store listeners
License: MIT License
A Redux store enhancer which uses User Timing API to profile redux actions and time spent on notifying store listeners
License: MIT License
This issue provides visibility into Renovate updates and their statuses. Learn more
This repository currently has no open or pending branches.
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.
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 :
asyncAdd
asyncAdd
trigger action syncAdd
syncAdd
trigger a effect in Helper.jsx
Helper.jsx
trigger syncAdd
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!
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.