Commit graph

152 commits

Author SHA1 Message Date
Greg Johnston
3195ab4ffc Get Suspense/Transition hydration working 2022-12-18 07:38:51 -05:00
Jose Quesada
ae16c2f96d prepending :: to leptos imports 2022-12-16 16:37:47 -06:00
Jose Quesada
6cfd2ba04e added prop docs to props builder 2022-12-16 08:51:07 -06:00
Jose Quesada
cd178c5c85 using format_ident instead of Ident::new 2022-12-16 08:25:52 -06:00
Jose Quesada
688b0a6b73 started fine-tunning view macro spans 2022-12-16 07:30:13 -06:00
Jose Quesada
3e508b16f3 impl #[component(transparent)] 2022-12-15 13:40:58 -06:00
Jose Quesada
3b99d2d4fd added tracing support to component macro 2022-12-15 12:01:16 -06:00
Greg Johnston
1b0aa4d903 Disable macro SSR until I've added IDs 2022-12-15 08:36:46 -05:00
Greg Johnston
01013b00e5 Implement classes in SSR macro path 2022-12-15 07:56:31 -05:00
Jose Quesada
218c4d3c90 moved body back inside itself to allow forwarding attributes 2022-12-14 12:57:43 -06:00
Jose Quesada
5f95776a08 Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2 2022-12-14 12:24:16 -06:00
Jose Quesada
adee33a08e initial impl of #[prop()] 2022-12-14 12:15:41 -06:00
Greg Johnston
e3e0460371 Disable SSR macr until node ID generation is done 2022-12-14 10:57:37 -05:00
Greg Johnston
6e4448dae6 SSR work with missing node IDs 2022-12-14 10:56:48 -05:00
Jose Quesada
b37a36a003 allowing clippy lint for too many arguments on components 2022-12-14 07:34:31 -06:00
Jose Quesada
a7a35857bb now tracking scope name 2022-12-13 14:33:34 -06:00
Jose Quesada
caa919b257 Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into leptos_dom_v2 2022-12-13 14:15:42 -06:00
Jose Quesada
4c123884de reverted to redeclaring the component fn within itself 2022-12-13 14:15:23 -06:00
Greg Johnston
5e06eb1a99 Correct use of cx 2022-12-13 15:14:41 -05:00
Greg Johnston
cc0bf20c9d Use the correct identifier for cx here 2022-12-13 15:06:21 -05:00
Jose Quesada
eeaccfc815 moved fn block into Component::new 2022-12-13 13:23:51 -06:00
Jose Quesada
39e809f686 initial impl of component macro with inline doc comments and TypedBuilder overrides 2022-12-13 12:44:30 -06:00
Jose Quesada
286c95136f Merge branch 'leptos_dom_v2' into leptos_dom_v2_component 2022-12-13 07:38:51 -06:00
Greg Johnston
5ca169ac06 Properly handle Scope when creating component children 2022-12-13 07:42:14 -05:00
Jose Quesada
a75cbee133 started working on component macro 2022-12-12 18:33:12 -06:00
Jose Quesada
99ff73c721 applied fix per gbj's suggested 2022-12-12 16:23:15 -06:00
Greg Johnston
8a0e56aff5 Properly namespace Fragment when used 2022-12-12 13:39:50 -05:00
Greg Johnston
c4cc3e944b Merge in changes from main 2022-12-12 09:26:46 -05:00
Greg Johnston
43ffa1bcd7 Use Fn() -> Fragment for component children, and update router and Suspense/Transition 2022-12-10 22:12:08 -05:00
Greg Johnston
9d43eb5503 Tweak handling of component children 2022-12-10 19:42:08 -05:00
Greg Johnston
6c29d85b8d Remove into_view in view and component macros 2022-12-10 19:21:46 -05:00
Greg Johnston
18bd2162cf Docs in component macro 2022-12-10 16:21:58 -05:00
Greg Johnston
f9cc57acb9 Fix attributes in view macro 2022-12-10 08:32:30 -05:00
Greg Johnston
9a114eb595 Avoid name conflicts between functions to create elements and local variables 2022-12-09 14:36:25 -05:00
Greg Johnston
eb40f9f7c7 Remove leptos_dom/ssr dependencies 2022-12-08 19:32:46 -05:00
Greg Johnston
fbfd1a4f60 Fix other dependencies on leptos_dom/csr and leptos_dom/hydrate 2022-12-08 19:24:36 -05:00
Greg Johnston
f0257222f8 Fix cx injection in macro 2022-12-08 18:29:44 -05:00
Greg Johnston
aec289e384 Get SSR benchmarks running again 2022-12-05 20:34:29 -05:00
Greg Johnston
870d8f3542 Different form for passing in cx 2022-12-05 16:07:25 -05:00
Greg Johnston
0230b1ffa5 Deal w/ merge issues and get SSR working 2022-12-05 16:04:02 -05:00
Greg Johnston
d5f91e67a5 First pass at SSR 2022-12-05 15:09:04 -05:00
Greg Johnston
64722604b5 Move Component::new() invocation inside the #[component] macro to allow for things like the <Route/> component 2022-12-05 08:45:27 -05:00
Greg Johnston
b6a90f154f Remove useless attempt at better Intellisense 2022-12-04 23:04:06 -05:00
Greg Johnston
4a5b3b3cc5 Use new event system 2022-12-04 22:59:45 -05:00
Greg Johnston
71a2a24d09 Working components in view! macro 2022-12-04 22:10:56 -05:00
Greg Johnston
8ea7e20dfb Builder-compatible view! macro 2022-12-03 21:28:39 -05:00
Greg Johnston
e465867b30 Fixes issue #110 and improves #[component] docs overall 2022-11-24 07:48:57 -05:00
Greg Johnston
19d7b8434b
Merge branch 'main' into typed-event-handlers 2022-11-23 19:03:52 -05:00
Greg Johnston
6949750668 Fixing tests and examples 2022-11-23 18:29:20 -05:00
Greg Johnston
3a65ad9a51 Fix type inference on server 2022-11-23 16:54:41 -05:00