I'm trying to implement a memoized callback function in Jetpack Compose, similar to React's useCallback.
For example I'd like to use this to create a submit lambda function that contains the logic for submitting a form, but I don't want this lambda to be recreated on each recomposition. This should only be recreated when its dependencies change.
Does something like this exist?