Skip to content

v1.7.0

Choose a tag to compare

@gedaiu gedaiu released this 06 Oct 11:41
· 14 commits to main since this release
7902805
  • New opt-in no-unguarded-async-button rule: a <button type="submit">, or a
    button whose onClick is an async function, with no disabled binding is
    reported, since a second click starts the request again. A handler name is
    followed in scope to async function, const f = async () => and
    useCallback(async () => …); a spread passes, as it may carry the guard, and
    aria-disabled does not count. components adds a consumer's own button
    components, and pendingComponent / submitComponent name the house
    replacement in the message. Syntactic only, so it runs without type
    information.

What's Changed

Full Changelog: v1.6.0...v1.7.0