Evan Almloff
2523581cf4
Autocomplete rsx ( #2421 )
...
* autocomplete rsx
* hide the completions module
* fix autocomplete for identifiers that start with a raw identifier
* add field completion hints for props
* remove extra import
* Revert "add field completion hints for props"
This reverts commit 194899c737
.
* fix autocomplete inside raw expressions
* fix autofmt
* feat: just use regular ifmt if it's compatible
reuses the tokens for ifmt so RA provides its HIR lowering on simple formatted strings
* fix merging ifmt strings
* add a better error message for components called like functions
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-05-22 07:24:50 -05:00
Evan Almloff
47c87568e1
Fix event handler memory leak ( #2298 )
...
* fix event handler memory leak and double drops
* Prevent double dropping generational boxes
* recycle instead of dropping
2024-04-26 00:47:22 -04:00
Matt Hunzinger
96b9baafff
Fix event handler drops ( #2288 )
...
* Try to fix event handler drops
* fix Option<EventHandler> parsing logic
* only move over props if both event handlers are some
* fix owner forwarding with props(extends)
* fix clippy
---------
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-10 11:23:45 -05:00
Evan Almloff
36f67bd5e2
update 0.4 doc links to 0.5
2024-03-27 20:42:07 -05:00
Jonathan Kelley
a1c03a461d
Basic docs cleanups
2024-03-27 17:06:10 -07:00
Miles Murgaw
3cbe6ff96e
Fix Outdated README.md ( #2147 )
...
* fix: outdated readme
* Fix missing readme
---------
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:17:02 -07:00
Evan Almloff
b19a546c0a
Don't move over event handler fields when diffing props ( #2129 )
...
* don't move over event handler fields when diffing props
* Expand values_memoize_in_place test to cover the new bug case
2024-03-22 15:18:38 -07:00
Evan Almloff
0662033c84
Fix early drop of eventhandlers ( #2126 )
...
* fix early drop of eventhandlers
* add a test for stale props that are memorized in place
* fix clippy
2024-03-22 14:37:02 -07:00
Evan Almloff
a5714e342c
fix bounds on owner props ( #2122 )
2024-03-20 16:37:08 -07:00
Evan Almloff
58f7efafea
Make EventHandler copy ( #2112 )
...
* implement Copy for EventHandler
* implement from closure for event handler and remove special on prefix
* fix props implementation of EventHandler
2024-03-19 19:48:53 -07:00
Jonathan Kelley
9c64fc4769
Fix #1938 , allow explicit props
2024-03-18 15:34:46 -07:00
Jonathan Kelley
ad7a350d2e
fix hotreloading issues in the CLI
2024-03-12 13:39:42 -07:00
Evan Almloff
d575b3e4e4
fix the visibility of the read only signal helper struct
2024-03-11 14:46:51 -05:00
Jonathan Kelley
32595ce161
Fix clippy on box references
2024-03-09 01:54:25 -08:00
Jonathan Kelley
494f7e727d
Heavily document component macro
2024-03-09 01:31:40 -08:00
Jonathan Kelley
052fd774cf
Chore #2028 : radically clean up core-macro
2024-03-09 01:09:20 -08:00
Jonathan Kelley
dd109f20d2
fix #1979 : generated Owned impl for the props builder was using the wrong generics. ( #2027 )
...
This commit fixes the owned impl to use the original generics rather than the build generics.
2024-03-08 16:49:56 -06:00
Jonathan Kelley
7461a14cb4
fix 2020: return None if the root nodes are empty in rsx ( #2026 )
2024-03-08 15:57:46 -06:00
marc2332
97478bcb13
fix unrelated to dioxus-router
2024-02-26 21:50:16 +01:00
Jonathan Kelley
8f07d881a6
Switch todo!() to unreachable!/unimplemented! where it matters
2024-01-31 16:26:20 -08:00
Evan Almloff
1f88103dca
only implement T -> Readonlysignal
2024-01-29 15:57:23 -06:00
Evan Almloff
50e3216d8b
convert T into signals automatically
2024-01-29 13:36:39 -06:00
Evan Almloff
52ea3465e6
import the SuperInto trait in core macro
2024-01-24 16:43:18 -06:00
Evan Almloff
c3555a7ec0
fix Option<String> in props
2024-01-24 16:40:14 -06:00
Evan Almloff
e65c5f0eb3
depreciate the render macro
2024-01-16 13:18:46 -06:00
Evan Almloff
90d0164b9e
fix formatted strings in components
2024-01-16 12:47:23 -06:00
Jonathan Kelley
98bd78de43
Fix issue with mutability in component macro
2024-01-15 23:57:10 -08:00
Evan Almloff
af1749d7be
re export renderers in dioxus
2024-01-15 19:14:11 -06:00
Evan Almloff
36e9eb1160
partially restore spreading attributes
2024-01-14 15:21:19 -06:00
Jonathan Kelley
1dde044697
remove cx.render
2024-01-13 21:12:21 -08:00
Jonathan Kelley
fae0b08e61
Fix the router and stub out a number of crates to get compiling
2024-01-13 20:51:37 -08:00
Jonathan Kelley
3f15612c8e
Fix remaining issues to get desktop running
2024-01-11 17:30:50 -08:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged
2024-01-11 16:04:36 -08:00
Evan Almloff
8d783490a0
fix the component macro when the function takes a single argument
2024-01-11 12:01:40 -06:00
Evan Almloff
404c864246
make the root component take no arguments
2024-01-11 10:48:04 -06:00
Jonathan Kelley
47805461d0
Dump skip(0)
2024-01-10 16:39:40 -08:00
Jonathan Kelley
2a7f3a4164
Fix: quick tweak to allow #[component] macro working
2024-01-10 16:38:07 -08:00
Evan Almloff
c59926cb1f
remove IS_STATIC
2024-01-07 09:19:40 -06:00
Evan Almloff
58c01253e5
make EventHandler clone
2024-01-07 09:17:26 -06:00
Evan Almloff
5d842bad2b
add the visit feature to syn in core-macro
2024-01-06 08:59:57 -06:00
Evan Almloff
e5df83ceec
Merge branch 'master' into pr/atty303/1349
2024-01-06 08:52:37 -06:00
Evan Almloff
4013341b6c
hello world example working
2024-01-05 18:01:05 -06:00
Hampus Lidin
8230566c4d
Add doc comment on generated inline properties struct ( #1775 )
2024-01-02 10:01:53 -06:00
Evan Almloff
a840e012d8
fix clippy
2023-11-29 11:46:18 -06:00
Evan Almloff
be94c69f11
make optional props accept T or Option<T>
2023-11-29 11:38:28 -06:00
Evan Almloff
355cd9b19e
Merge branch 'master' into pr/atty303/1349
2023-11-20 18:37:33 -06:00
tigerros
d4b0451d09
Allow warning in necessary functions ( #1626 )
2023-11-09 12:31:59 -06:00
Lee TaeWoo
be1decf9f2
fix syntax error at derive Props
using const generics ( #1607 )
2023-11-04 13:53:50 -05:00
Evan Almloff
46fec1ae48
fix clippy
2023-11-02 13:46:57 -05:00
tigerros
bf36fc6def
Fix #[component]
expansion Clippy warning ( #1599 )
...
Adds a `#[allow(clippy::inline_always)]` attribute to the generated `__dx_inner_comp` function.
2023-11-01 08:14:07 -05:00