Class DynReducerHelperAbstract

Provides helper functions to create dynamic store driven filters and sort functions for dynamic reducers. The returned functions are also Svelte stores and can be added to a reducer as well as used as a store.

Index
  • get filters(): FilterAPI

    Returns the following filter functions:

    • regexObjectQuery(paths, options); suitable for object reducers matching one or more property paths against the store value as a regex. To access deeper entries into the object format the path as a dotted string between entries to walk or as a PropertyKey array. Optional parameters include logging access warnings, case sensitivity, and passing in an existing store.

    Returns FilterAPI

    All available filters.

  • get sort(): SortAPI

    Returns the following sort functions:

    • objectByPath

    Returns SortAPI

    All available sort functions.