Commit graph

788 commits

Author SHA1 Message Date
Greg Johnston
33590d487b
chore: clean up warnings causing CI issues (#2119) 2023-12-18 08:15:46 -05:00
NKID00
8122941c3c
fix: let mount_to_body accept FnOnce closures (closes #2115) (#2116) 2023-12-17 20:28:18 -05:00
Greg Johnston
4e8c3accf2
fix: make prop serialization opt-in for devtools (closes #1952) (#2081) 2023-11-27 16:35:31 -05:00
Greg Johnston
0ce4ee8a7a
docs: add warning for nested Fn in attribute (see #2023) (#2045) 2023-11-22 07:35:20 -05:00
martin frances
362e3bc603
chore: stop using std::fmt, instead used core::fmt. (#2033) 2023-11-17 15:36:13 -05:00
Greg Johnston
68c91a732d
fix: allow nested functions in Attribute (closes #2023) (#2027) 2023-11-15 11:00:15 -05:00
SleeplessOne1917
4029de2d42
feat: impl IntoAttribute for TextProp (#1925) 2023-10-27 17:10:09 -04:00
Ari Seyhun
4b0437394c
feat: impl IntoAttribute for Cow<'static, str> (#1945) 2023-10-27 13:48:43 -04:00
Ari Seyhun
a2bef05a4b
perf: IntoView and IntoAttribute for std::fmt::Arguments improvements (#1947)
* fix: use static str when possible in `std::fmt::Arguments` in views

* feat: impl `IntoAttribute` for `std::fmt::Arguments`
2023-10-27 13:42:27 -04:00
Greg Johnston
db1113e5b3
fix: use separate key in hydration ID for router outlets (closes #1909) (#1939) 2023-10-24 15:42:30 -04:00
martin frances
d999ff857d
chore: remove cargo doc lint warnings (#1936) 2023-10-24 14:28:01 -04:00
Greg Johnston
12b0295906
chore: please clippy (#1924) 2023-10-21 18:33:21 -04:00
Greg Johnston
2756327f12 fix: add missing IntoView implementation for Oco<'static, str> 2023-10-21 16:02:14 -04:00
Marc-Stefan Cassola
c87328f5cf
feat: add directives with use: (#1821) 2023-10-19 16:15:36 -04:00
Ari Seyhun
72ad1d7c68
feat: add new method to NodeRef (#1896) 2023-10-15 19:56:23 -04:00
Greg Johnston
c6f51e6a09
docs: add some missing #[must_use] to avoid accidental () rendering (#1885) 2023-10-11 15:00:27 -04:00
Markus Kohlhase
c080c2cbca
fix: use placeholder in comments for empty component names (#1850) 2023-10-09 16:17:46 -04:00
hiraginoyuki
c7607f6fcc
fix: documentation in leptos_reactive::Trigger (#1844) 2023-10-07 10:45:27 -04:00
Greg Johnston
6f9c40b0a8
fix: correctly handle Suspense with local resources during hydration (closes #1823) (#1824) 2023-10-02 18:02:35 -04:00
Antonin Peronnet
bd4d2202ea
feat: standardize on a Callback type that is Copy (#1795) 2023-09-29 13:04:53 -04:00
Danik Vitek
baa5ea83fa
fix: reimplement Oco cloning (#1749) 2023-09-22 13:31:04 -04:00
Lukas Potthast
7d3e2a41b9
fix: Callback clone impls missing a generic (#1744) 2023-09-18 13:47:29 -04:00
Lukas Potthast
dc1ba24470
fix: manual Clone and Debug impl for Callbacks (#1703) 2023-09-13 19:59:23 -04:00
jquesada2016
946f9ff3e1
feat: impl From<HtmlElement<El>> for HtmlElement<AnyElement> (#1700) 2023-09-13 19:55:48 -04:00
Baptiste
8d690ac146
fix: IntoView impl for Rc<dyn Fn() -> impl IntoView> (#1698) 2023-09-13 19:55:08 -04:00
Greg Johnston
59c7684568 fix: warnings on hydrating () 2023-09-13 12:01:05 -04:00
Greg Johnston
a158e7f8bd fix: remove erroneous log 2023-09-13 12:00:56 -04:00
Greg Johnston
a317874f93
change: run effects after a tick (#1680) 2023-09-11 21:01:35 -04:00
Greg Johnston
bb78f64cd5
fix: broken mount_to_body in CSR mode (#1688) 2023-09-10 13:23:32 -04:00
Greg Johnston
66dfef8729
Merge pull request #1681 from leptos-rs/docs 2023-09-08 17:11:47 -04:00
Greg Johnston
238d61ce1e
feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00
Greg Johnston
2fa2bf1706 docs: format 2023-09-08 16:27:50 -04:00
Greg Johnston
a07984be9e docs: add runtime warnings for mixing view! and builder in SSR mode (closes #1645) 2023-09-08 16:27:29 -04:00
blorbb
c87212f2d7
chore: remove (most) syn 1 dependencies (#1670) 2023-09-08 14:46:38 -04:00
Greg Johnston
689022661d
change: move logging macros into a logging module to avoid name conflicts with log and tracing (#1658) 2023-09-08 07:42:58 -04:00
jquesada2016
716b9fb50b
feat: add .into_X_boxed() for classes, properties, and styles as for attributes 2023-09-03 20:18:49 -04:00
jquesada2016
006ca13797
chore: hide get_property (#1638) 2023-09-03 20:15:15 -04:00
Village
4a43983f4e
feat: implement spreading attributes onto elements (#1619) 2023-09-01 20:52:15 -04:00
Antonin Peronnet
f5b4b97c9b
feat: Callback types to make it easier to accept (optional) callback props (#1596) 2023-09-01 20:51:32 -04:00
Danik Vitek
793c191619
feat: Oco (Owned Clones Once) smart pointer (#1480) 2023-08-26 11:43:51 -04:00
Greg Johnston
08c419e3ee
fix: broken test with untrack in tracing props (#1593) 2023-08-26 09:20:14 -04:00
Greg Johnston
9cc0fc8c49 fix: adjust tracing properties 2023-08-26 07:24:52 -04:00
rkuklik
cc293b1170
feat: generic event handler types to make it easier to create collections of event handlers (#1444) 2023-08-25 11:41:16 -04:00
Greg Johnston
b98174db7a
feat: support passing signals directly as attributes, classes, styles, and props on stable (#1577) 2023-08-24 10:22:14 -04:00
Greg Johnston
e48f66694d
fix: runtime disposal time in render_to_string_async (#1574) 2023-08-24 10:22:00 -04:00
Greg Johnston
ec4bd7600f
fix: suppress warning about non-reactivity when calling .refetch() (occurs in e.g., async blocks in actions) (#1576)
* fix: suppress warning about non-reactivity when calling `.refetch()` (occurs in e.g., async blocks in actions)

* fix: don't reenter reactivity if these are nested
2023-08-23 20:57:05 -04:00
Greg Johnston
65d4e98d38
fix: INFO is too high a level for this prop tracing (#1570) 2023-08-23 06:39:37 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx/Scope (#918) 2023-08-21 19:31:37 -04:00
luoxiaozero
18deb398ca
feat: tracing support for component props (#1531) 2023-08-18 08:29:41 -04:00
Greg Johnston
f01b982cff
fix: render empty dynamic text node in HTML as (closes #1382) (#1507) 2023-08-07 18:04:56 -04:00
Greg Johnston
1e13ad8fee
perf: in hydration, reuse existing text node rather than destroying and remounting (#1506) 2023-08-07 08:34:10 -04:00
mateusvmv
4001561987
fix: scoping of JS variable names in inline scripts (#1489) 2023-08-03 08:46:06 -04:00
Greg Johnston
b86009b9d0 fix: remove erroneous logging 2023-08-02 19:16:32 -04:00
Greg Johnston
56f01888b7
Merge pull request #1486 from leptos-rs/export-all-helpers
fix: correctly export all DOM helpers
2023-08-02 17:02:19 -04:00
Greg Johnston
8320f16716 chore: fix new clippy warnings 2023-08-02 16:05:42 -04:00
Greg Johnston
f837d3e6a2
fix: correctly escape HTML in DynChild text nodes (closes #1475) (#1478) 2023-08-01 13:22:24 -04:00
Greg Johnston
7819a6fac0
fix: properly replace text nodes in DynChild (closes #1456) (#1472) 2023-07-30 22:37:53 -04:00
martin frances
e0b5738606
chore: document the magic number in FILTER_SHOW_COMMENT. (#1468) 2023-07-29 16:53:10 -04:00
Greg Johnston
5740c9b76b
feat: add MaybeProp type (#1443) 2023-07-27 18:18:25 -04:00
Greg Johnston
7bc1ad2b4f
fix: incorrect opening node for <Each/> in debug mode (closes #1168) (#1436) 2023-07-26 10:43:46 -04:00
Greg Johnston
ec4bfb0e8a
chore: resolve clippy incorrect_clone_impl_on_copy_type (closes #1401) (#1418) 2023-07-22 22:14:52 -04:00
Greg Johnston
338d2ab839
Merge pull request #1379 from agilarity/lint-with-clippy
ci: lint with clippy
2023-07-20 14:15:16 -04:00
Greg Johnston
9e7c31d1e4
docs: small issues (#1385) 2023-07-19 08:53:37 -04:00
Joseph Cruz
3af115a663 fix: maybe_misused_cfg 2023-07-18 20:56:39 -04:00
Joseph Cruz
a344804734 fix: incorrect_clone_impl_on_copy_type (allow) 2023-07-18 20:54:51 -04:00
Greg Johnston
47148f2033
perf: exclude hydration code in CSR mode (#1372) 2023-07-17 12:20:33 -04:00
Greg Johnston
f40ae6af30
fix: correctly show fallback for Transition on first load even if not hydrating (#1362) 2023-07-16 15:19:51 -04:00
Greg Johnston
8e68699435
feat: add support for adding CSP nonces (#1348) 2023-07-14 16:37:18 -04:00
Greg Johnston
193aa79956
docs: how not to mutate the DOM during rendering (#1344) 2023-07-13 16:57:07 -04:00
Joseph Cruz
3481a6ee53
build: run tasks from workpace or member directory (#1339) 2023-07-13 16:46:51 -04:00
Greg Johnston
d4b1ceda90
fix: event delegation issue with <input name="host"> (#1332) 2023-07-12 16:20:11 -04:00
Greg Johnston
03a8609680
fix: warning generated by new #[must_use] on views (#1329) 2023-07-12 10:00:05 -04:00
g-re-g
3e40f9cc66
chore: bump indexmap to 2 (#1325) 2023-07-11 15:24:21 -04:00
Martinez
7a4d475cca
docs: update warnings to remove mention of csr as a default feature (#1313) 2023-07-09 20:32:25 -04:00
Greg Johnston
ae3ddcb0e6
docs: must use View (#1302) 2023-07-08 06:42:02 -04:00
g-re-g
bab9f40a81
fix: rework diff functionality for <For/> (#1296) 2023-07-07 15:32:26 -04:00
Greg Johnston
f06ffd72aa
fix: use once_cell::OnceCell rather than std::OnceCell (#1288) 2023-07-05 17:16:51 -04:00
Greg Johnston
83d3d7579c
fix: issue with class hydration not removing classes correctly (closes #1286) (#1287) 2023-07-05 12:00:27 -04:00
Greg Johnston
d81c1a929e
fix: duplicate text nodes during <For/> hydration (closes #1279) (#1281) 2023-07-04 11:50:59 -04:00
Greg Johnston
f69c28df18
fix: improved diagnostics about non-reactive signal access (#1277) 2023-07-03 19:37:15 -04:00
Greg Johnston
81e416b085
fix: error messages in dyn_classes (#1270) 2023-07-03 09:57:50 -04:00
Greg Johnston
0f1ebccad5
fix: clearing <For/> that has a previous sibling in release mode (fixes #1258) (#1267) 2023-07-02 17:27:39 -04:00
Greg Johnston
2f01df6185
fix: HtmlElement::dyn_classes() when adding classes (#1265) 2023-07-02 17:27:24 -04:00
martin frances
c4982319fe
chore: ran cargo clippy --fix and reviewed changes. (#1259) 2023-07-02 17:27:14 -04:00
Greg Johnston
67300adf41
fix: regression in ability to use signals directly in the view in stable (#1254) 2023-06-30 11:59:29 -04:00
Greg Johnston
ee7dbafc85
change: migrate to nightly and csr features rather than stable and default-features = false (#1227) 2023-06-26 21:12:14 -04:00
Greg Johnston
966100c2d6
feat: add an anyhow-like Result type for easier error handling (#1228) 2023-06-25 15:18:00 -04:00
Greg Johnston
9da4084561
fix: nested Suspense/Transition with cascading resources (#1214) 2023-06-21 16:39:58 -04:00
jquesada2016
1d7235d4ca
fix: in <For/>, removed not being cleared when setting a diff to clear, causing panic (#1220) 2023-06-21 15:19:12 -04:00
Greg Johnston
2cb8171105
docs: document <ErrorBoundary/>/<Suspense/> relationship (#1210) 2023-06-21 11:17:20 -04:00
Greg Johnston
8ae5cf0ccf
fix: don't re-mount identical child in DynChild (#1211) 2023-06-19 17:04:08 -04:00
jquesada2016
5f0013e482
fix: reorder <For /> apply_diff steps (#1196) 2023-06-15 20:37:17 -04:00
jquesada2016
97127a90c6
fix: new <For/> bug when clearing which ignores further additions (#1181) 2023-06-14 13:56:56 -04:00
Greg Johnston
a98885a123
fix: <ErrorBoundary/> IDs with new hydration key system (#1180) 2023-06-13 18:38:23 -04:00
jquesada2016
f415f7b146
fix: removes in new <For/> causing panics in some circumstances (#1173) 2023-06-13 15:43:02 -04:00
jquesada2016
b6d9060152
feat: improved <For/> algorithm (#1146)
Rewrites the algorithm behind the `<For/>` component to create a more robust keyed list implementation, with the potential for future additional optimizations related to grouping moved ranges.

Closes #533.
2023-06-11 10:20:14 -04:00
Greg Johnston
55266f2efd
perf: reduce overhead of hydration keys (#1122) 2023-05-31 20:30:31 -04:00
Greg Johnston
5d70275c3a
fix: dispose of runtime when stream is actually finished (closes #1097) (#1110) 2023-05-28 13:44:31 -04:00
Marc-Stefan Cassola
475566837e
feat: added scrollend event (#1105) 2023-05-27 11:04:30 -04:00
Greg Johnston
7ff08615bb
fix: remove debug logs accidentally included 2023-05-27 06:08:08 -04:00