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

kore-query

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kore-query

This package simplifies and allows the use of @tanstack/react-query. This package allows you to generate async requests using axios and then using them in your react query hooks to cache the data. THIS IS A WIP, I WILL ADD AND TAKE AWAY FEATURES AS I SEE

latest
npmnpm
Version
1.0.7
Version published
Maintainers
0
Created
Source

Kore Query

GitHub contributors GitHub forks GitHub Repo stars GitHub issues LinkedIn

License: MIT

Kore-Query

A library built on @tanstack/react-query to increase ease of use, control, and efficiency

Github Repo

Contents

About

Kore-Query comes with custom hooks like mutations, prefetch, queries. It also provides custom providers, and a client built on Axios to use with React Query with Suspension.

Installation

npm

npm i --save kore-query

yarn

yarn add kore-query

To clone the repo:

git clone https://github.com/koltenfluckiger/kore-query.git

Examples

import {useKorios, useKoreQuery} from "kore-query";
import React from "react";

function Container({children, ...props}) {
  const Korios = useKorios();
  const reviewsRequest = Korios.asyncerrator({
    url: "/api/reviews",
    params: {populate: "*"},
    method: "GET",
    options: {withCredentials: true},
  });
  const {data, isLoading, error} = useKoreQuery({
    queryKey: ["reviews"],
    queryFunc: reviewsRequest,
  });

  if (isLoading) {
    return <div>Loading...</div>;
  } else {
    return <div>{data}</div>;
  }
}

License

License used for this project - MIT

Contributing

To contribute to this application, create a pull request. Here are the steps needed for doing that:

  • Fork the repo

  • Create a feature branch (git checkout -b NAME-HERE)

  • Commit your new feature (git commit -m 'Add some feature')

  • Push your branch (git push)

  • Create a new Pull Request

    Following a code review, your feature will be merged.

Authors and Acknowledgments

Kolten Fluckiger

Contact Information

FAQs

Package last updated on 24 Feb 2025

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