Comments (6)
@jlow81 , if this happens to you again, could you note exactly the order of progression through the pages. I am having a hard time duplicating and I think this bug has to do with the order at which you step through the pages. Thanks! :-)
from code-gov-front-end.
I've run into this bug again today. It's the same problem causing #48. I'm working on coming up with a fix now
from code-gov-front-end.
Issue is that connected-react-router
is not registering changes to the window.location into the router in the Redux store when a user clicks a Link, only when we use the push
function.
In other words, ConnectedRouter does not appear to be working. react-router and connected-react-router don't appear to work together: https://reacttraining.com/react-router/web/guides/redux-integration
I tried the workaround hear and it didn't work.
One solution may be to implement a shouldComponentUpdate and check properties of match object.
from code-gov-front-end.
Workaround mentioned above doesn't appear to work either:
I'll think on this and update the ticket when I have a next step. It will probably involved listening to events somehow or creating a custom CustomLink component that basically wraps around a Link component from the react-router library
from code-gov-front-end.
I tried doing this with this.props.location, which I believe is provided by react-router-dom and that didn't work. What's probably easiest is to just store the pathname in the state and check to see if that changes. Will try that and if that doesn't work, maybe work on wrapping Link and NavLink
from code-gov-front-end.
Fixed. Solution was hacky, but works.
from code-gov-front-end.
Related Issues (20)
- Add engagement metrics to home page. HOT 1
- SAM.gov Contract Ops JSON API App HOT 2
- Process to Remove Stale Help-Wanted Tasks HOT 2
- Update metadata link for calculating data quality scores HOT 2
- Update DAP scripts for production with subagency tag
- Add updated news to Fall release
- Update State Dept's compliance by having a policy posted on agency website. HOT 2
- Update link for resource.data.gov per Phil A's recommendation.
- Bumped api-client to 0.4.2 in code-gov-front-end package.json. HOT 1
- Check cautious and sitemap generator repos for vulnerabilities for FE release.
- Update the filters on the browse projects and open task pages.
- Final Fall release items
- Metadata validator for code.json? HOT 2
- Getting a project listed on code.gov HOT 2
- Data Quality score helper has invalid urls HOT 2
- Satellite Hack SQL code
- agency compliance dashboard HOT 3
- Mislabeled agency GitHub organizations HOT 2
- code.json link is broken for commerce.gov HOT 1
- Security Policy violation Branch Protection HOT 74
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 code-gov-front-end.