1.0.8 • Published 1 year ago

rtk-loading v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

build with @reduxjs/toolkit.

A rtk extraReducer method execution process collector

The execution status of the current method can be obtained from the 【loading.effects】 of the 【store】 every time the createAsyncThunk executes

Judge whether the execution is completed by returning true and false

excemple

import { useLoading } from 'rtk-loading';

const initLoading = loading.effects['app/init']

step1

npm install rtk-loading

step2

import { configureStore } from "@reduxjs/toolkit";
import { loading, effectsLoadingMiddleware } from "rtk-loading";

const store = configureStore({
  reducer: {
    loading: loading,
    //... you reducer
  },
  middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(effectsLoadingMiddleware),
});

export default store;

step3

import { useLoading } from 'rtk-loading';

const loading = useLoading();

loading.effects['']
1.0.16

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.12

10 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago