Comments (3)
Ahhh,
I just tried using regex in the console filter and it worked.
For those who find this and need it:
/UPDATE|SET/
Anyways, getting this sucker on the redux devtools would still be highly beneficial, so I won't close this issue just yet.
from react-recollect.
Well... That was super easy.
In any component you use collect
on, you can import and add an inspector:
import { inspectProps } from 'react-inspect-props';
...
export default collect(inspectProps('Inspector')(Component));
Then just make sure you have the Google Chrome Redux DevTools installed.
from react-recollect.
Hey, react-inspect-props
is great! Thanks for sharing, and thanks for offering to look into it.
In some circumstances, you also might find useful afterChange
which would let you conditionally log updates to the console. For example:
import { afterChange } from 'react-recollect';
afterChange(props => {
if (props.propPath.includes('products')) {
props.components.forEach(component => {
console.log(`Updated "${component._name}" because "${props.propPath}" changed`);
});
}
});
Or even use a live expression to watch something very specific, like __RR__.getStore().products.filter(product => product.favorite).length
.
from react-recollect.
Related Issues (20)
- Subsequent renders with pure children doesn't recollect data
- Passing store data to a collected component can have unexpected results HOT 1
- CodeMirror onChange event appears to have an outdated store HOT 7
- Collected components re-render when an unused property is created HOT 3
- Checking prop types of non-collected components counts as reads
- Create module/cjs builds in addition to umd
- Some reads in componentDidUpdate aren't getting the old store
- Add better debugging tools
- Top down rendering? HOT 3
- Don't process props in production HOT 1
- PropType Errors Collapsed HOT 1
- Add .back() and .forward() debug tools (time travel)
- How to deal with discriminated union types? HOT 2
- Can you please elaborate on how to convert `redux-saga` to use `react-recollect`? HOT 2
- __RR__.getStore is not a function HOT 1
- Expose a `useStore` hook. HOT 1
- Borrow local to feedback for `Scroll Memory` extension
- Is this project is still active? HOT 2
- Add a useProps function
- <React.Strict> causes "You are attempting to modify the store during a render cycle"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-recollect.