12 Commits

Author SHA1 Message Date
Danilo Britto
6422fa8898
Refactor useBoundStore and useLocalAndUrlStore (#3277) 2025-10-28 21:25:41 -05:00
Danilo Britto
a5ffe1b99b
Update connect-to-state-with-url-hash.md (#3263) 2025-10-17 08:59:04 -05:00
Chafic Najjar
eac9dad35b
Fix "previous" and "next" navigation links (#2777) 2024-10-08 07:11:45 -05:00
Cody Partington
4be1e9eb4a
fix(docs): errors and types fix for URL state example (#2218)
* Update connect-to-state-with-url-hash.md

Resolved a few errors and type errors in the persist and create state with URL example:

1. createJsonStorage not being called in storageOptions resulting in a type error.
2. Correct hook not being exported
3. Moved the creation of initial state inline to get the correct types passed from create/persist.
4. Used state type as generic for persist.

* yarn prettier run

* Update docs/guides/connect-to-state-with-url-hash.md

Better name for state in setter

Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>

* prettier run

---------

Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>
Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2023-12-31 22:29:34 +09:00
Daishi Kato
9857a676a9
refactor: revisit prettier config to be minimal (#2193) 2023-11-14 12:19:51 +09:00
Chris K
e8597ae77f
docs: refine flux inspired docs to make pattern inspiration clearer (#1874)
* docs: refine flux inspired docs to make pattern inspiration clearer

* docs: remove the immutable note in the flux inspired docs
2023-06-18 11:42:01 +09:00
Celine Cheng
286e4436c7
docs: persist and connect state with url (#1804)
* docs: persist and connect state with url

* ran prettier

* remove line

* Apply suggestions from code review

Co-authored-by: Blazej Sewera <code@sewera.dev>

* from review comments

---------

Co-authored-by: celinecheng <celine.cheng@capitalone.com>
Co-authored-by: Blazej Sewera <code@sewera.dev>
2023-05-17 20:52:02 +09:00
Vadim Shvetsov
614bf5fbbb
Fix saving URL hash example demo (#1800) 2023-05-12 08:14:44 +09:00
hellohy
baf9b309c1
fix(doc): update state-with-url-hash demo (#1687)
* fix(doc): update state-with-url-hash demo

* fix(doc): url-hash demo better code
2023-03-17 10:26:06 +09:00
Daishi Kato
0b55a3d74b
feat: deprecate default export (#1514) 2023-01-10 18:13:25 +09:00
Jacob Bergholtz
4ed81bc11b
Add usage with context to docs (#1291)
* docs: context guide proposal

* fix(docs): typo & omit comment

* fix(docs): remove horizontal rules

* fix(docs): add wiki link to DI

* fix(docs): format with prettier

* fix(docs): cases that model => where... is needed

* fix(docs): use sentence case

* fix(docs): omit quote block

* fix(docs): into "a" custom hook

* fix(docs): format with prettier

* fix(docs): sort broken nav indexes

* Update docs/guides/initialize-state-with-props.md

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>

* fix(docs): reintroduce React.createContext example

* scripts: escape quotes

* styles: run prettier

* fix(docs): omit 'React' from imports

* styles: run prettier

* styles: run prettier

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
2022-09-18 09:01:06 +09:00
Joel (조기문)
faaed15364
fix(docs): Issue 1254 guides (#1267)
* Update persisting-store-data.md

* Fix persisting-store-data.md with 'yarn run prettier'

* Add connect-to-state-with-url-hash.md
  * Remove docs from persisting-store-data.md
2022-09-08 18:33:26 +09:00