I am working on a project where I need to be able to pull in a slug from a dynamic url, but also want to be able to check against a logged in user, so that if you are on your own profile you can edit it. I have got the code to work fine with my navBar component but not with the userProfile component.
https://gist.github.com/defiantbydesign/70691c080998e4aacb58785c38c6ce60