New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@burnsred/query

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@burnsred/query

> **⚠️ DEPRECATED**: This package is deprecated and will no longer receive updates.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Query

⚠️ DEPRECATED: This package is deprecated and will no longer receive updates.

Deprecation Notice

This package has been deprecated as of version 1.0.0 and is no longer maintained.

What this means:

  • No new features will be added
  • No bug fixes will be provided
  • Security vulnerabilities will not be patched

Recommended Action: Please migrate to alternative solutions as soon as possible.

Support

For questions about this deprecation, please open an issue in the main repository.

Last maintained version: 1.0.0 Deprecation date: February 2026

The Query interface is the main abstraction point.

It allows interfacing data storage/backing layers with data modification. E.g. Redux/API with Forms and Lists.

Each lower layer needs to provide its own verison of the useQuery hook.

Quick Start

import { useQuery } from "@burnsred/api";

function MyForm({ api, id }) {
  // Asks the API layer to ensure the data are available.
  const query = useQuery({ api, id });

  if (query.processing) return <Loading />;

  return (
    <Form {...query}>
      ...
    </Form>
  )
}

The props

useQuery:

  • field: FieldType;

The EntityField for this record.

name: string;

  • A dummy name; provided to remain compatible with the Form/Input interface.

value: T;

  • the current (draft) value for this record.

reset: () => void;

  • a callback to reset the draft to initial state.

errors: FieldErrorMap;

  • any validation errors for this form.

onChange: ChangeEventHandler;

  • a callback to update the draft (e.g. value).

onSubmit: FormEventHandler;

  • a callback to save the draft. Should update the initialValue, and write to whatever backing store is in use.

pagination: boolean;

  • if this is a list of records, are its results paginated?

processing: boolean;

  • is the backing layer currently loading data?

processingDidFail: boolean;

  • did the attempt to load data fail?

valueInitial: T;

  • the current value as stored in the backing layer.

FAQs

Package last updated on 23 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts