JSPM

  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q80902F
  • License MIT

Knowmax Generic list with basic CRUD support without any user interface implementation.

Package Exports

  • @knowmax/genericlist-core
  • @knowmax/genericlist-core/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@knowmax/genericlist-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Knowmax Generic list with basic CRUD support

Core implementation for Knowmax Generic list with basic CRUD support without any user interface.

Strongly opinionated, but flexible enough to be used in a variety of scenarios.

Features

  • Create, Read, Update, Delete (CRUD) operations
  • Restore functionality for deleted items
  • Filtering, sorting, and pagination support
  • Observable state management with MobX
  • TypeScript support with full type safety
  • Flexible endpoint configuration
  • Error handling for all operations
  • Simple list hook for lightweight read-only scenarios

Hooks

A lightweight React hook for fetching paginated list data without complex state management or CRUD operations.

Key Features:

  • Simple pagination support
  • Built-in loading and error states
  • TypeScript support
  • Manual refetch capability
  • Automatic request abortion

Use when:

  • You need read-only data lists
  • You want simple pagination without complex state management
  • You don't need caching functionality
  • You prefer lightweight components

See SIMPLE_LIST_HOOK.md for detailed documentation.

useList (Legacy - will be deprecated)

The original full-featured hook with MobX state management, caching, and CRUD operations.

Note: This hook will be deprecated in future versions. New projects should use useSimpleList for simple scenarios or wait for the upcoming replacement for complex scenarios.

Restore Functionality

The GenericCudList class now includes restore functionality to restore previously deleted items. See RESTORE_FUNCTIONALITY.md for detailed usage instructions.