Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Best Practices

Alec Larson edited this page Nov 5, 2020 · 1 revision

An incomplete list of best practices when using ople.

  • Avoid using event listeners in useOple initializers.
    You risk dropping events in between the render and commit phases, which often leads to incorrect state. This risk exists because the useOple hook pauses event listeners until the parent component is painted for the first time.
Clone this wiki locally