0.1.0 • Published 5 years ago

redux-nara v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Redux Nara

Features

  • Asynchronous
  • Routing
  • Key Command

Asynchronous

const getUserData: NaraAsyncWorker<MyAction, MyAppState> = async function(action: MyAction, dispatcher: Dispatch<S>) {
    const user = await api.getUser();

    dispatcher(createSuccessGetUser(user));

    const action2 = await waitAction<MyAction2>(MY_ACTION2)

    const state = getState();

};

const listener: NaraAsyncListener<MyAppState> = {
    actionType: GET_USER_DATA,
    worker: getUserData,
    options: {
        allowParallel: false,
    },
};

Key Command

const keyCommand = new NaraKeyCommand({
    onlyWithModifierKey: false,
    combinations: [
        { modifier: "Ctrl", key: "A" },
    ],
});
0.1.0

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago