• Provides an action to monitor focus state of a given element and set an associated store with current focus state.

    This action is usable with any writable store.

    Parameters

    Returns ActionReturn<MinimalWritable<boolean>>

    Lifecycle functions.