Skip to content
#

hoc

Here are 285 public repositories matching this topic...

dlong500
dlong500 commented Sep 27, 2017

I'm trying to migrate from v1 to v2 of redux-auth-wrapper. I'm sticking with RR3 for the moment since I'm using SSR and it will be a larger undertaking to migrate everything to RR4 (though I do want to migrate eventually).

That being said, I'm running into some issues with getting everything working like it was under v1. To summarize, I'm not sure how to get a FailureComponent working under v

react-sizes
such
such commented Jul 17, 2018

Hey,

Thanks a lot for this library!
It appears that you do not copy static methods as described here: https://reactjs.org/docs/higher-order-components.html#static-methods-must-be-copied-over
It seems the convention is that all HOC should do that. The behaviour is somewhat unexpected otherwise.
Are you planning on adding it to the library?

In the meantime, I'm using this workaround:

react-lazy-load-image-component
jotamodesto
jotamodesto commented Apr 17, 2020

If I'm not mistaken the blur and black and white effects are related to the placeholderSrc, and opacity creates a blank space then transition to the loaded image.

It would be nice if I define placeholder prop, then the opacity effect could use it

Ex:
<LazyLoadImage src="some-big-image.jpg" placeholder={<div>Loading...</div>} effect="opacity" />

aduth
aduth commented Jan 7, 2019

react-click-outside's use of findDOMNode triggers a warning when used with React.StrictMode.

https://reactjs.org/docs/strict-mode.html

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of PopoverDetectOutside which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

_("PopoverDetectOutside" is the component wrap

Improve this page

Add a description, image, and links to the hoc topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the hoc topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.