@trashpanda001/helpers
    Preparing search index...

    Function useForceUpdate

    • Returns a function that can be invoked to force an update / re-render.

      Returns ActionDispatch<[]>

      stable force update function

      Force a component to re-render.

      import { useForceUpdate } from "@trashpanda001/helpers/react"

      function Component() {
      const forceUpdate = useForceUpdate()
      return <button onClick={forceUpdate}>Refresh</button>
      }