Remix Utils - v10.0.1
    Preparing search index...

    Type Alias ShouldCommitFunction<Data>

    ShouldCommitFunction: (prev: Partial<Data>, next: Partial<Data>) => boolean

    A function that compares the previous and next session data to determine if it changed and needs to be committed.

    Type Parameters

    • Data

    Type Declaration

      • (prev: Partial<Data>, next: Partial<Data>): boolean
      • Parameters

        Returns boolean

        A boolean indicating if the session should be committed