1.0.25 • Published 1 year ago

tomerbu-todo-store v1.0.25

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

Tomerbu Todo Store

A shared Redux store for managing todos, designed to be used with WordPress blocks.

Installation

npm install tomerbu-todo-store

Usage

import { useDispatch, useSelect } from "@wordpress/data";

const todos = useSelect((select) => select.getTodos(), []);
const useTodoDispatch = useDispatch("todos-store");

useTodoDispatch().addTodo({
  id: Date.now(),
  text: "New Todo",
});
1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year 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