Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
react utils: Add useConditionalEffect custom hook
To replace useEdgeTriggeredEffect, which implicitly required a constant callback; see zulip#5300 (comment) and this bit of useEdgeTriggeredEffect's jsdoc: * The callback is not permitted to return a cleanup function, because it's * not clear what the semantics should be of when such a cleanup function * would be run.
- Loading branch information