Setting new selected value post-mount
See original GitHub issueI’m attempting to manipulate the selected page number of PaginationBoxView without a user click (such as on pushState) after the component has been mounted. What I found was that the selected
state wasn’t updating because that state is only set before the initial mount.
I opened a PR with a simple solution using componentWillReceiveProps, let me know if this is appropriate: #61
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Developers - Setting new selected value post-mount - - Bountysource
I'm attempting to manipulate the selected page number of PaginationBoxView without a user click (such as on pushState) after the component has been...
Read more >Post-Mount with componentDidMount() · react-indepth
This method is called once all our children Elements and our Component instances are mounted onto the Native UI. When this method is...
Read more >How to set selected value of jQuery Select2? - Stack Overflow
1. I was trying with the id only select2('val', '1') but it wasn't work.. Thanks · 6. This does work, just wanted to...
Read more >3 Things You Can Do to Improve Your Post Mount Mailbox
In this article, The Mailboxworks looks at post mount mailbox accessories and three key elements that will add value to your curbside ...
Read more >SRAM/Avid Disc Post Mount Spacer Set - Jenson USA
Avid Disc Post Mount Adaptor Avid disc caliper spacer set. Doing away with brake adaptor brackets this spacer kit will allow you to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should be able to do what you want by updating the
forcePage
prop each time you want to change the selected page.Hello, In case it can help you, on version
6.5.0
ofreact-paginate
, you can now define the event you want to listen onto. You just need to instantiate the component with aneventListener
prop.For instance: