twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.86k stars 487 forks source link

when use flex-direction: column-reverse, How should offset be set ? #255

Open JinJieTan opened 4 years ago

JinJieTan commented 4 years ago

image

How should I set this value? To get lazy loading effect

ForceCheck doesn't seem to work when I scroll

image

The console is printed, but the node is not replaced

image

JinJieTan commented 4 years ago

When I set offset like this


export default lazyload({
  height: 100,
  once: true,
  offset: [0,-200],
})(Message);

image

No matter how I scroll, no response

JinJieTan commented 4 years ago

image

How should I configure it?So far I've started the loop timer and I can't show the elements

export default lazyload({
  height: 100,
  once: true,
  offset: [0, -200],
})(Message);
JinJieTan commented 4 years ago

I also found that my placeholder height was incorrect

image

please help me ! thank you very much

JinJieTan commented 4 years ago

@wub @svobik7 @DanielRuf @mboperator

please help me ! thank you very much

liufeisprit commented 4 years ago

解决了吗 @JinJieTan