Evan Almloff
d795995e20
Create closure type; allow async event handlers in props; allow short hand event handlers ( #2437 )
...
* create closure type; allow async event handlers in props; allow shorthand event handlers
* test forwarding event handlers with the shorthand syntax
* fix clippy
* fix imports in spawn async doctest
2024-06-10 18:47:07 -07:00
Evan Almloff and Jonathan Kelley
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 194899c73783e0f9b5d601d53365746d838f2048.
* 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
af524d979b
Fix empty for loop, if statements and children ( #2275 )
...
* fix empty for loop, if statements and children
* fix clippy
2024-04-08 19:23:55 -07:00
Jonathan Kelley
be99e29e5f
Fixes to autofmt, make it more aggressive ( #2230 )
...
* fix: fmt unterminated if, be more aggressive with line splits
* Fix: Handle long exprs in for/if statements
2024-04-03 15:27:36 -07:00
Jonathan Kelley
eb79e61642
Add a ton of comments to rsx/hotreload, add snapshot testing, refactor a bit to simplify the crate ( #2130 )
...
Merge dynamic context and dynamic mapping, clean up the rsx hotreload logic, and add location data to the Rsx objects
2024-03-24 13:31:26 -07:00
Jonathan Kelley
8f07d881a6
Switch todo!() to unreachable!/unimplemented! where it matters
2024-01-31 16:26:20 -08:00
Evan Almloff
918d09b516
fix merging attributes
2024-01-16 14:20:51 -06:00
Evan Almloff
90d0164b9e
fix formatted strings in components
2024-01-16 12:47:23 -06:00
Evan Almloff
8d14671520
fix spreading attributes
2024-01-16 11:04:37 -06:00
Evan Almloff
af1749d7be
re export renderers in dioxus
2024-01-15 19:14:11 -06:00
Jonathan Kelley
e801007698
Clean up some bits
2024-01-11 17:36:00 -08:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged
2024-01-11 16:04:36 -08:00
Jonathan Kelley
1527b81e02
Components participate in event handlers
2024-01-11 12:11:27 -08:00
Jonathan Kelley
f1e8faffb5
fix tests
2024-01-10 23:17:01 -08:00
Evan Almloff
c9bd5a4e6e
look out for a simple to optimize format case
2024-01-07 17:02:49 -06:00
Evan Almloff
4013341b6c
hello world example working
2024-01-05 18:01:05 -06:00
Evan Almloff
7f0fa07757
fix hot reloading
2023-10-04 09:11:21 -05:00
Evan Almloff
ee25c03e74
fix some clippy lints
2023-09-27 10:13:45 -05:00
Evan Almloff
5b65c4cfb4
implement spreading props in the rsx macro
2023-09-22 10:04:34 -05:00
Evan Almloff
c0f345e775
add if statements to test and rsx usage example
2023-09-19 09:48:56 -05:00
Evan Almloff
d297e2baa2
Add optional attributes
2023-09-18 19:50:02 -05:00
Evan Almloff
9f1c735cf1
combine style and class attributes when there are multiple
2023-09-14 16:40:49 -05:00
Evan Almloff
be4b0c801a
fix raw attributes with dynamic values
2023-09-14 16:10:48 -05:00
Evan Almloff
8c47dfaf78
clean up attribute parsing
2023-09-14 14:08:39 -05:00