Commit graph

41 commits

Author SHA1 Message Date
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
389b6e6811 Directly use and return read / write signal given by default_value 2023-11-04 13:30:36 +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
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
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
3ecaade851 Schedule internal use_storage events to notify same page of changes 2023-10-28 12:13:55 +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
Joshua McQuistan
7bfd069047 Expose generalised use of use_storage_with_options 2023-10-27 14:15:40 +01:00
Joshua McQuistan
fdb9f672d1 Apply use_signal default value via an optional signal 2023-10-27 13:57:36 +01:00
Joshua McQuistan
f3c87a1c50 Move use_storage.rs under storage/ 2023-10-27 12:41:42 +01:00
Joshua McQuistan
bdeadba508 Delete existing storage/ in favour of use_storage.rs 2023-10-27 12:39:58 +01:00
Maccesch
60b4ae2609 fixed use_storage. This fixes #19 2023-08-06 00:31:48 +01:00
Maccesch
58c54bb3e7 migrated away from CloneableFn... traits 2023-08-04 15:58:03 +01:00
Maccesch
a00fe0c4a5 fixed get untracked warning in use_storage 2023-08-02 01:16:13 +01:00
Maccesch
2e08874db0 ported to leptos 0.5 alpha 2023-07-27 18:06:36 +01:00
Maccesch
e55f253e8d use MaybeRwSignal where applicable. Fixes #4 2023-07-15 16:48:29 +01:00
Maccesch
bc94577ec6 added SSR feature 2023-07-14 22:43:19 +01:00
Maccesch
864a5d3be9 fixed Box<dyn Fn> option fields (mostly in default-struct-builder) 2023-07-12 20:46:25 +01:00
Maccesch
fadfcab1c1 added use_cycle_list, use_color_mode and maybe_rw_signal 2023-06-23 22:16:18 +01:00
Maccesch
915127d749 re-added doc cfg feature flag but commented out 2023-06-23 22:13:14 +01:00
Lukas Potthast
b5ddeeda97 Allow users to use the stable toolchain 2023-06-21 13:09:00 +02:00
Maccesch
18ff2f49e1 use_interval callback as box 2023-06-15 20:10:30 +01:00
Maccesch
5e04455640 clippy CI and all warnings fixed 2023-06-10 19:43:51 +01:00
Maccesch
1189da63a2 added use_media_query 2023-06-10 03:19:00 +01:00
Maccesch
e1b4d149e3 added local/session storage 2023-06-10 01:52:21 +01:00
Maccesch
a14842391a added use_storage and use_round 2023-06-10 00:57:35 +01:00
Maccesch
0a5eb5e895 added macro for simple math functions 2023-06-09 23:10:33 +01:00