Commit graph

575 commits

Author SHA1 Message Date
Maccesch
8199d19e92 brought back use_storage in book 2023-11-12 23:03:06 +00:00
Maccesch
b26459986e brought back use_storage 2023-11-12 22:50:59 +00:00
Marc-Stefan Cassola
205df15467
Merge pull request #47 from feral-dot-io/fix-bash
Problem: mdbook use_service_worker script is not portable
2023-11-12 22:39:16 +00:00
Joshua McQuistan
e8c6540369 Remove @ prefix on mdbook storage reference 2023-11-11 13:16:20 +00:00
Joshua McQuistan
9306e0299c Remove storage flag from mdbook 2023-11-11 13:15:34 +00:00
Joshua McQuistan
99803a9bcb Organise storage docs for mdbook 2023-11-11 13:15:13 +00:00
Joshua McQuistan
cf33e317a6 Rename use_storage.rs to align with mdbook reference 2023-11-11 12:56:32 +00:00
Joshua McQuistan
3867a4bd1d Problem: mdbook use_service_worker script is not portable 2023-11-11 12:41:04 +00:00
Joshua McQuistan
94841e4bb5 Document fields on UseStorageOptions 2023-11-11 11:05:29 +00:00
Joshua McQuistan
93556a3f8f Fix clippy lint. Remove needless borrow 2023-11-11 10:56:46 +00:00
Joshua McQuistan
2976d4c033 Fix clippy lints 2023-11-11 10:51:23 +00:00
Joshua McQuistan
5b056e8d19 Problem: CI references storage feature. Replace with serde,prost 2023-11-11 10:43:32 +00:00
feral-dot-io
776479cafe
Merge branch 'main' into main 2023-11-11 10:34:32 +00:00
Marc-Stefan Cassola
1a9c98c36e
Merge pull request #44 from feral-dot-io/resize
Remove use of --cfg=web_sys_unstable_apis
2023-11-10 21:00:47 +00:00
Joshua McQuistan
1d08beaa3e Problem: clippy says Default impl can be derived 2023-11-10 18:13:56 +00:00
Joshua McQuistan
f918da9688 Revert remove use of --cfg=web_sys_unstable_apis for templates 2023-11-10 17:14:14 +00:00
Maccesch
9c3970a950 Fixed SSR of use_timestamp, use_raf_fn and use_idle
Fixes #45
2023-11-09 23:26:47 +00:00
Joshua McQuistan
e242834b66 Specify minimum wasm-bindgen version 2023-11-08 11:38:07 +00:00
Joshua McQuistan
40b369d36a Remove use of --cfg=web_sys_unstable_apis 2023-11-07 10:13:55 +00:00
Joshua McQuistan
a65e4ddaa1 Problem: mdbook refers to use_storage from older API 2023-11-04 16:33:43 +00:00
Joshua McQuistan
808e97c072 Add JSON versioning docs + examples 2023-11-04 15:44:09 +00:00
Joshua McQuistan
7c3ebf09f4 Add overview of codec versioning 2023-11-04 15:43:36 +00:00
Joshua McQuistan
9a9f1ba7d9 Problem: use_storage's default_value with a signal might suggest changing the signal also changes the value used on an unset storage value. Rename to initial value and document this behaviour 2023-11-04 13:50:41 +00:00
Joshua McQuistan
af653595a5 Problem: use_storage examples have unused imports 2023-11-04 13:36:01 +00:00
Joshua McQuistan
16ad1417cf Add link to open new window for use_storage example 2023-11-04 13:33:02 +00:00
Joshua McQuistan
389b6e6811 Directly use and return read / write signal given by default_value 2023-11-04 13:30:36 +00:00
Joshua McQuistan
a28bbb33e4 Update docs/book for use_storage 2023-11-04 11:01:52 +00:00
Joshua McQuistan
6e423753b8 Problem: UseColorModeOptions::storage_enabled references storage flag / feature which no longer exists 2023-10-29 15:58:41 +00:00
Joshua McQuistan
daab6f944c Remove notice to enable feature storage on use_color_mode 2023-10-29 15:47:52 +00:00
Joshua McQuistan
208451f0c2 Update docs to specify that values are synced across multiple use_storage calls on the same page and other tabs / windows 2023-10-29 15:44:20 +00:00
feral-dot-io
f899f560e5
Merge branch 'Synphonyte:main' into main 2023-10-29 12:27:50 +00:00
Joshua McQuistan
8168d301e0 Update prost 2023-10-29 12:23:33 +00:00
Joshua McQuistan
1a27eb0034 Problem: docs test broken with missing codec constructors 2023-10-29 12:20:23 +00:00
Joshua McQuistan
f3ea5dcd74 Fix use_storage for SSR 2023-10-29 12:18:45 +00:00
Joshua McQuistan
d267408116 Add codec setter to UseStorageOptions 2023-10-29 11:58:14 +00:00
Joshua McQuistan
64c6f63d68 Fix dead doc ref 2023-10-29 11:57:02 +00:00
Joshua McQuistan
6af4cc0693 Switch to relying on a codec's default instead of constructors on UseStorageOptions 2023-10-29 11:49:03 +00:00
Joshua McQuistan
4110a763c9 Document use_storage with examples 2023-10-29 11:41:59 +00:00
Joshua McQuistan
40fdb5f6b5 Add use_storage debounce / throttle on write 2023-10-29 09:45:43 +00:00
Maccesch
7084b91c0a made ElementMaybeSignal's from string conversion SSR safe.
Fixes #41
2023-10-28 16:18:29 -05:00
Joshua McQuistan
50952581de Clean up of UseStorageOptions default 2023-10-28 12:28:26 +01:00
Joshua McQuistan
c24f0a5d45 Separate StringCodec to separate file 2023-10-28 12:19:33 +01:00
Joshua McQuistan
c62adedcf2 Update use_storage example for new API 2023-10-28 12:16:05 +01:00
Joshua McQuistan
3ecaade851 Schedule internal use_storage events to notify same page of changes 2023-10-28 12:13:55 +01:00
Joshua McQuistan
f23d8ad31c Problem: use_color_mode doesn't work with new use_storage API. Use StringCodec 2023-10-27 20:46:53 +01:00
Joshua McQuistan
1371b81b67 Problem: use_storage value setter differs from existing API too much. Use WriteSignal + separate deleter fn 2023-10-27 19:51:02 +01:00
Joshua McQuistan
d56c5cf514 Problem: use_storage defaults to StringCodec. Allow turbo fish usage and rely on Default 2023-10-27 16:08:51 +01:00
Joshua McQuistan
bbebd8a67f use_storage SSR should return signal with defaults 2023-10-27 14:50:29 +01:00
Joshua McQuistan
861633dd1e Gate prost and serde dependencies behind features 2023-10-27 14:32:03 +01:00
Joshua McQuistan
7b5456a461 Remove storage feature 2023-10-27 14:27:53 +01:00