Open kalkusa opened 4 months ago
I found a workaround for this issue:
const plugins = useMemo(() => {
return [new Pagination({ type: "bullet" })];
}, []);
Maybe it's not even workaround, but proper usage - anyway documentation shows only functional component example - https://naver.github.io/egjs-flicking/Plugins#pagination . Meanwhile functional components are most popular now.
If this shouldn't be fixed it would be at least valuable to provide proper example...
Description
Component render empties the bullets container. If no re-render appears, the plugin works well. But if state change causes component re-render then bullets disappear.
The situation happens in React.js.
Steps to check or reproduce
When onMove and onMoveEnd handlers modify state, causing component rerender, then
becomes