Commit graph

391 commits

Author SHA1 Message Date
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
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
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
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
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
Joshua McQuistan
4538097ab1 Problem: use_color_mode relies on specifying backing via StorageType. Expose use_storage_with_options and use StorageType 2023-10-27 12:37:41 +01:00
Joshua McQuistan
0fb4f7e6a1 Problem: only local storage is available. Provide session and generic web_sys::Storage fns 2023-10-27 11:56:47 +01:00
Joshua McQuistan
c6d9ea28e5 Add codec (String, prost, and serde) to use_storage 2023-10-27 10:05:02 +01:00
Joshua McQuistan
0f6b4aadc6 Add prototype use_storage option to listen to changes 2023-10-26 12:01:04 +01:00
Joshua McQuistan
2f3c72f2bb Prototype use_storage replacement that uses TryFrom<String> 2023-10-26 11:46:47 +01:00
Maccesch
8c2beb814d release 0.8.0 2023-10-24 00:52:06 -05:00
Maccesch
c547720184 Merge branch 'lpotthast-main'
# Conflicts:
#	CHANGELOG.md
#	Cargo.toml
#	docs/book/src/SUMMARY.md
2023-10-24 00:41:32 -05:00
Maccesch
96cc7f7399 made use_service_worker more in line with the other functions 2023-10-24 00:36:32 -05:00
Maccesch
cd67ca5542 added use_web_notification 2023-10-23 23:49:11 -05:00
Maccesch
b8421f2186 added use_infinite_scroll 2023-10-23 20:15:05 -05:00
Maccesch
f3af2ad9ea fixed some SSR issues with not using use_window() in some functions 2023-10-21 15:21:11 -05:00
Lukas Potthast
2b405b3504 Reformat lib.rs 2023-10-04 18:09:21 +02:00
Lukas Potthast
be05687ad2 Remove expect's; Rephrase comments 2023-10-04 17:55:57 +02:00
Lukas Potthast
e038f9664a WIP: Add use_service_worker 2023-10-04 17:35:52 +02:00
Maccesch
50345a2bef added use_sorted 2023-10-02 21:05:20 +01:00
Maccesch
0e45b9a9c6 Merge branch 'main' into use_webtransport 2023-09-30 18:31:54 +01:00
Maccesch
c45c31fa9a release 0.7 2023-09-30 18:24:06 +01:00
Maccesch
7e988c42ea added websocket docs for use in context 2023-09-28 10:58:59 +01:00
Maccesch
5eaa63f422 fixed websocket docs 2023-09-28 01:41:39 +01:00
Maccesch
eff44f42e0 websocket uses &str in send instead of String 2023-09-28 00:37:14 +01:00
Maccesch
19da9bf784 fixed breakpoints' current() method 2023-09-27 17:01:05 +01:00