aweary / react-perimeter

🚧 Create an invisible perimeter around an element and respond when its breached.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only works if I resize the window.

mhaagens opened this issue · comments

onBreach doesn't fire unless I resize the window.
Using it like this;

<Perimeter
onBreach={() => console.log('should write to console')}
padding={24}
once={true}>
  <Link to="/link">Link</Link>
</Perimeter>

Can you provide an example reproducing your issue? Unfortunately, isn't enough information here for me to provide any meaningful help.