Use didNeedCompensation function to get padding-bottom for the compensation layer.
I needed this because my sticky has a dynamic height.
And if compensation gets updated with it the page content will not "sync" with the dynamic height on scroll and will go under the sticky before it should. So in my case, I needed a fixed compensation value.
Add didNeedCompensation param to Sticky component
Use didNeedCompensation function to get padding-bottom for the compensation layer.
I needed this because my sticky has a dynamic height.
And if compensation gets updated with it the page content will not "sync" with the dynamic height on scroll and will go under the sticky before it should. So in my case, I needed a fixed compensation value.