meteor-socialize-demo
meteor-socialize-demo copied to clipboard
Denying a friendship request won't work
In the demo app, I can accept a friendship request, but not deny it. The link just won't react. Unsure if this is a problem in the demo app or in the friendship package. In the console, I see this error:
modules.js?hash=3f373a18fadedf08586ec01d170c2fb665257e29:53923 Warning: Prop `href` did not match. Server: "/messages/new" Client: "/messages/nrdPe5wQWgQTFXS8Q"
Unsure this is related to the problem or an older message.
EDIT: No, it doesn't seem to be related. Also shows up if I just reload the page.
The prop mismatch is due to how the UI adapts to smaller displays and server rendering not knowing the size of the browser and so it's rendered on the server with one prop value and on the client with another.
As far as denying requests, this has been fixed in an updated version of the friendships package. See https://github.com/copleykj/socialize-friendships/pull/33.
I have unfortunately let the updates on this demo lapse to the point where running updates is next to impossible due to version constraints. In the future I am planning to recreate this demo with the latest versions of everything, but at the moment any sort of extra time to complete this is non-existent for me.