Git Product home page Git Product logo

wordpress-pma's People

Contributors

jayhill90 avatar octalmage avatar

Watchers

 avatar

Forkers

octalmage

wordpress-pma's Issues

App renders the entire page on link switching.

Currently with utilizing shouldComponentUpdate() we're getting a console warning about onClick expecting a function. This is working for navigation but it is refreshing the entire page making extraneous requests.

Slug being passed as undefined.

Currently when using /ableton as the route path, this path is being passed into SinglePage as undefined, we're getting two console logs for undefined on some attributes and in the GET request.

Screenshot can be found here

When using /:slug in the Route it seems to actually almost work but does return undefined for the slug path in the URL on the get request like above screenshot. I think the issue with the route for home showing up was due to matching maybe? Not fully sure on that one need to explore it more.

Here's the props from the React Chrome extension for the route.

{
  "match": {
    "path": "/:slug",
    "url": "/ableton",
    "isExact": true,
    "params": {}
  },
  "location": {
    "pathname": "/ableton",
    "search": "",
    "hash": "",
    "key": "p5kd2z"
  },
  "history": {
    "length": 50,
    "action": "PUSH",
    "location": {},
    "createHref": {},
    "push": {},
    "replace": {},
    "go": {},
    "goBack": {},
    "goForward": {},
    "block": {},
    "listen": {}
  }
}

Looks like params is showing as empty, and based on the react router documentation example here then params should have something. I get errors when I try to use the this.params.slug call in SinglePage's url call.

Get Page > Page navigation working.

Currently we are able to go from the Homepage to a Page and everything renders as expected, however we are having trouble going from Page to Page. Will need to look into.

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.