react-perimeter
react-perimeter copied to clipboard
Only works if I resize the window.
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.