Philipp Broze

Results 3 comments of Philipp Broze

Just checked. Using a "callback ref" proposed in [old PR](https://github.com/maslianok/react-resize-detector/pull/136/commits/e6b42954843b1e9023149adb41475cb85c770551) would still solve the issue. Relates to [prev issue](https://github.com/maslianok/react-resize-detector/pull/136) You can also still see the bug on the intial render...

@lexanth Which lib did you end up using? I was curious about "use-resize-observer". It seems to support a "targetRef". (But [nope](https://codesandbox.io/s/use-resize-oberver-hopn7?file=/demo.js:426-433) =). Merging callbacks ([e.g](https://github.com/ZeeCoder/use-resize-observer#getting-the-raw-element-from-the-default-refcallback)) looks like a good idea...

in the line: "if len(sample)==group_size" the length of sample will always be 7 since the data was sliced with the default group_size, which is 7 and thus causing the shift...