Commit graph

4481 commits

Author SHA1 Message Date
Jonathan Kelley
a0e06271dd
Fix: flaky CI by correcting autofmt to match proper spacing (#2369) 2024-04-26 12:04:56 -04:00
Evan Almloff
cbeda0af76
Refactor and fix eval channels (#2302)
* wip

* pull out eval into the interpreter

* fix web eval

* fix DioxusChannel name

* properly drop dioxus channel

* use typescript dioxus chanel in desktop

* add more comments to native eval

* add desktop headless eval tests

* expand web playwright eval tests

* fix web headless tests

* fix default hasher path

* run eval tests on windows

* restore desktop query drop code

* remove data from drop desktop query message

* catch syntax errors in desktop eval

* catch js runtime errors in desktop

* fix typo interprerter -> interpreter

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-04-26 11:55:48 -04:00
Evan Almloff
1d72ef16c4
Restore set compare hook (#2287)
* restore set compare hook

* fix use_set_compare doc example

* add a hook to compare a value with a set

* implement partialeq for SetCompare

* export the new hook

* fix the use_set_compare hook
2024-04-26 11:55:11 -04:00
Evan Almloff
fc2b441ee1
Fix memorization for the fragment component (#2360) 2024-04-26 00:48:06 -04: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
Evan Almloff
a27d4e71ed
Only compress web assets in the CLI (#2329)
* only compress web assets in the CLI

* precompressed -> pre-compressed

* only enable pre-compression in release builds
2024-04-26 00:47:04 -04:00
Chris Rogus
b147f5a737
impl HasFileData for FormData (#2346) 2024-04-25 14:31:50 -04:00
Evan Almloff
08da9a1253
Implement hash fragments in the router (#2320)
* implement hash fragments in the router

* clean up query and search example

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-04-25 14:30:25 -04:00
Evan Almloff
dd8e69635b
Fix calling server functions on desktop (#2357) 2024-04-25 14:24:46 -04:00
Evan Almloff
b30b363460
remove unused once-cell in memo (#2311) 2024-04-25 13:58:42 -04:00
Evan Almloff
cf6998b5ba
Warnings for signal writes that may cause infinite loops (#2277)
* warnings for signal writes that may cause infinite loops

* improve debugging output for reactive contexts on scopes

* expand help message
2024-04-25 13:58:25 -04:00
Evan Almloff
61360ea05f
extend the subscriber list instead of overriding it; fixes subscribers added in mark_dirty (#2319) 2024-04-25 13:57:46 -04:00
Evan Almloff
88f3558419
Fix reclaim element when hot reloading (#2361)
* Fix reclaim element when hot reloading

* Just disable headless tests on windows
2024-04-25 13:36:43 -04:00
Evan Almloff
39cef8fe42
fix out of order fields in route definitions (#2356) 2024-04-25 13:36:04 -04:00
Evan Almloff
6234f60b0e
Fix desktop drag events that don't have associated files (#2358) 2024-04-25 13:34:21 -04:00
Evan Almloff
72ef58b95e
Create use_muda_event_handler hook (#2367)
* create use_muda_event_handler hook

* fix use_muda_event_handler re-export
2024-04-25 13:32:34 -04:00
Jonathan Kelley
790b984e61
bump extension version 2024-04-24 22:41:31 -04:00
Alexander
1ec6819ac8
enables ability to turn off hot reloading (#2351) 2024-04-24 08:02:57 -05:00
Miles Murgaw
4e0c7940cc
revision: cli help docs (#2349) 2024-04-22 09:57:56 -05:00
alongdate
a5b4ceed39
chore: fix some typos in comments (#2340)
Signed-off-by: alongdate <alongyear@outlook.com>
2024-04-19 08:29:22 -05:00
Evan Almloff
5ce91e1bfc
Fix flakey windows tests (#2332) 2024-04-17 15:08:38 -07:00
Chung
c9ab09b348
fix path of set_server_url (#2314)
Co-authored-by: =Chung Wong <=wch705@gmail.com>
2024-04-16 09:18:50 -05:00
Marc Espin
b6d3da2b31
fix: Update use_resource docs (#2303)
* fix: Update `use_resource` docs

* Fix use_recourse docs; match ref instead of deref because WeatherLocation isn't copy

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-15 08:28:12 -05:00
Miles Murgaw
05b662ee2d
fix: cli spam when build (#2300) 2024-04-13 18:16:13 -05:00
Marc Espin
29f69fa145
fix: Update use_hook docs (#2296)
* fix: Update `use_hook` docs

* rust

* fixes
2024-04-11 15:43:58 -05: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
Jonathan Kelley
994056e16d
Don't eat keys (#2280) 2024-04-08 22:31:58 -07:00
Jonathan Kelley
67af2d89dd
Autofmt nested rsx using syn::Visitor (#2279)
* Nested macros using visitor pattern
2024-04-08 22:15:52 -07:00
Jonathan Kelley
0b7c7701a3
fmt 2024-04-08 19:24:49 -07: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
Evan Almloff
40b576894f
fix the assets head path (#2267) 2024-04-08 19:23:11 -07:00
Evan Almloff
a012fb57ab
poll tasks in the same order they are queued (#2273) 2024-04-08 18:44:43 -07:00
Evan Almloff
26c109f661
fix volatile attributes (#2278) 2024-04-08 18:42:48 -07:00
Aron Puddy
c799168666
pass features thru to cargo on dx bundle (#2271) 2024-04-08 08:52:04 -05:00
Ahmet Kaan GÜMÜŞ
e03593cff7
docs: ✏️ unnecessary need to in global_context.rs (#2268) 2024-04-08 08:51:14 -05:00
Miles Murgaw
f4164c78c2
Fix: CLI Logging (#2254)
* fix: cli logging

* remove: debug print
2024-04-05 12:37:40 -07:00
Zan Pan
bd852c68fd
Use tracing::warn when the dioxus CLI is not used (#2250) 2024-04-05 12:36:05 -07:00
Zan Pan
fcbebbbf14
Use tracing::warn! instead of error! when assets not being preloaded (#2251)
* Use `tracing::warn!` instead of `error!` when assets not being preloaded

Currently, it emits a `tracing::error` when assets not being preloaded if the dioxus CLI was not used to build the application. It should be a warning since `cargo` can also build the application successfully.

* add more details to desktop preload warning

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-05 08:33:02 -05:00
Jonathan Kelley
7eccc7a104
Release 0.5.2
dioxus-cli@0.5.2
dioxus-fullstack@0.5.2

Generated by cargo-workspaces
2024-04-04 18:32:14 -07:00
Evan Almloff
c43bbe6aa5
fix the relative paths issue in the fullstack crates.io build (#2248) 2024-04-04 18:30:14 -07:00
Jonathan Kelley
9c5e5f969f
Release 0.5.1
dioxus@0.5.1
dioxus-autofmt@0.5.1
dioxus-check@0.5.1
dioxus-cli@0.5.1
dioxus-core@0.5.1
dioxus-core-macro@0.5.1
dioxus-desktop@0.5.1
dioxus-fullstack@0.5.1
dioxus-hooks@0.5.1
dioxus-html@0.5.1
dioxus-interpreter-js@0.5.1
dioxus-lib@0.5.1
dioxus-liveview@0.5.1
dioxus-mobile@0.5.1
dioxus-router-macro@0.5.1
dioxus-rsx@0.5.1
dioxus-signals@0.5.1
dioxus-ssr@0.5.1
dioxus-web@0.5.1
dioxus_server_macro@0.5.1
generational-box@0.5.1
rsx-rosetta@0.5.1

Generated by cargo-workspaces
2024-04-04 17:05:21 -07:00
Jonathan Kelley
702509cb7e
Fix recycling on component callbacks (#2247) 2024-04-04 16:48:06 -07:00
Jonathan Kelley
0a3291084f
Use a VecDequeue instead of a vec for bytes (#2246)
* Fix: add both the rAF queue and vecdequeue

* Fix: Take before recycle
2024-04-04 16:29:28 -07:00
Jonathan Kelley
633e2a70a4
Fix memory leak in owner (#2245)
* Fix: memory leak on listeners for elements

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-04 15:32:23 -07:00
Jonathan Kelley
44fe2defc2
Fix: memory leak on listeners for elements (#2244)
* Fix: memory leak on listeners for elements
* Recycle in manuallydrop

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-04 14:25:17 -07:00
Jonathan Kelley
6f3c5518ca
Feat: provide root context as method on virtualdom (#2243) 2024-04-04 12:00:06 -07:00
Jonathan Kelley
821a650f77
Fix: requeue events, process events (#2236)
* Fix: requeue events, process events

* Fix test: wait_for_work shouldn't wait 3 times when one update happens while rendering
2024-04-04 11:46:31 -07:00
Evan Almloff
4d25e3f6a2
fix hydration for non-bubbling events (#2234) 2024-04-04 11:46:22 -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
Russell Mull
46b0eeb12c
Implement the "Toggle Developer Tools" menu item in desktop (#2198) 2024-04-02 10:53:26 -07:00
Evan Almloff
11bf5ae34f
fix firefox refreshing loop in debug mode (#2214) 2024-04-02 10:52:40 -07:00
Evan Almloff
4c209e39fe
re-export generational box error types from the signals crate (#2212) 2024-04-02 10:52:27 -07:00
Evan Almloff
c8140c78b3
reuse placeholder and empty nodes on each thread to reduce allocation (#2217) 2024-04-02 10:52:16 -07:00
Evan Almloff
5df333fca2
fix and test spawn_forever (#2216) 2024-04-02 10:52:00 -07:00
Evan Almloff
947b23bda5
fix rendering aborted nodes in SSR (#2218) 2024-04-02 10:51:48 -07:00
Jonathan Kelley
aca38e6a34
Fix typo is style tag removal (#2220) 2024-04-01 16:01:44 -05:00
Marc Espin
7949fcda9a
chore: Clean up use_on_destroy docs (#2199)
* chore: Clean up `use_on_destroy` docs

* fmt
2024-04-01 09:20:04 -05:00
Evan Almloff
9f280a8d84
Fix child fields with the web history (#2172)
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-29 18:23:28 -07:00
Evan Almloff
6a781af693
Fix hydration for static text nodes at the root of the template (#2184)
* Fix hydration for static text nodes at the root of the template

* fix clippy
2024-03-29 18:22:55 -07:00
Evan Almloff
4a622348f2
Fix the mobile feature on the dioxus crate (#2185) 2024-03-29 18:22:41 -07:00
David McNeil
d16ac4e736
Bump rfd to version 0.14 fixing 2149 (#2161) 2024-03-29 18:05:14 -07:00
Marko Lazić
cec6b92e42
Move dioxus_core::diff::node logs from info to trace #2165 (#2182)
Co-authored-by: Lazić <markolazic@protonmail.com>
2024-03-29 12:17:00 -05:00
Martijn Gribnau
862ec2680b
fix: Reflect that create command was renamed to new (#2174) 2024-03-29 08:34:57 -05:00
Jonathan Kelley
2461790baf
bump cli to 0.5.4 2024-03-28 21:11:54 -07:00
Marc Espin
44471f4918
fix: Hide launch mod when disabled (#2171) 2024-03-28 16:58:58 -05:00
Andrew Voynov
fd21c97103
fix(generational-box): polished README.md (#2168) 2024-03-28 10:23:11 -05:00
simonsan
d9f78abf10
fix: remove misplaced 'a' from cli help text (#2166) 2024-03-28 07:58:40 -05:00
Jonathan Kelley
ac1aea4783
Binstalls not working, need archive suffix 2024-03-27 19:35:38 -07:00
Jonathan Kelley
1f6c7cfbd0
fix binstall 2024-03-27 18:55:29 -07:00
Evan Almloff
36f67bd5e2 update 0.4 doc links to 0.5 2024-03-27 20:42:07 -05:00
Evan Almloff
e8491d5cf4
Require every field in router variants to be present in the route in the web history (#2159)
* require every field to be present in the URL in the web history

* remove desktop only extra field from the simple routes example
2024-03-27 18:12:35 -07:00
Jonathan Kelley
329c323b35
Doc fixes, running examples instructions, change menubar behavior for desktop 2024-03-27 17:57:05 -07:00
Jonathan Kelley
537f064001
Remove some old docs, cleanup some readmes 2024-03-27 17:28:30 -07:00
Jonathan Kelley
a1c03a461d
Basic docs cleanups 2024-03-27 17:06:10 -07:00
Evan Almloff
86d1dba699
Check type of launch config (#2125)
* Check type of launch config

* fix cargo check

* compile when using an explicit platform with other platforms enabled

* fix formatting

* fix overlapping TryIntoConfig implementations

* fix desktop headless tests

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-27 12:08:05 -07:00
Miles Murgaw
44f3047780
Revision: Change Default Logging In CLI (#2157)
* revision: filter to warn logs

* revision: change to use DIOXUS_LOG
2024-03-27 12:07:44 -07:00
Jonathan Kelley
08944223be
fix binstall 2024-03-27 00:37:58 -07:00
Jonathan Kelley
3f127f5fcb
fix vendored flag 2024-03-26 22:40:24 -07:00
Jonathan Kelley
fd64d1a419
use vendored ssl on mac 2024-03-26 22:26:54 -07:00
Jonathan Kelley
30bc7ae63f
Bump extension and relase it 2024-03-26 21:01:46 -07:00
Jonathan Kelley
85c3cf1f9b
Make my editor happier with the cargo 2024-03-26 20:26:45 -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
dadbab5d72
make some enums non-exhaustive (#2140) 2024-03-26 19:14:48 -07:00
Evan Almloff
460a685fa3
Warn if cli-config is not available at compile time (#2135)
* warn if a package relies on the CLI config, but it is not built with the CLI

* fix default features

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:10:26 -07:00
Evan Almloff
1b03bed20a
Provide a better error message for wasm bindgen version mismatches (#2136)
* provide a better error message for wasm bindgen version mismatches

* fix clippy

* only rerun wasm bindgen if the first run fails

* remove old logs
2024-03-26 19:08:12 -07:00
Emil Boman
fb396b0448
Fix fullstack render server context (#2139)
* Fix fullstack render server context

* only set the server context while polling futures

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-03-26 09:59:25 -05:00
Evan Almloff
e464294c66
fix hot reload on windows (#2142) 2024-03-26 00:36:11 -07:00
Evan Almloff
9942c8bfd1
Fix asset bundling in the CLI (#2145)
* Fix asset bundling in the CLI

* fix clippy
2024-03-26 00:36:03 -07:00
Evan Almloff
2ac4bdb673
Switch to tracing for the cli (#2137)
* switch to tracing in the dioxus-cli

* bump manganis

* fix manganis features

* only print processing assets if skip assets is disabled

* switch all logs to tracing

* switch to published version of manganis

* undo all changes to cargo.toml

* remove reference to log
2024-03-25 15:21:51 -05:00
Evan Almloff
da3b066934 Revert "switch to tracing"
This reverts commit 6608f73a2e.
2024-03-25 10:09:53 -05:00
Evan Almloff
6608f73a2e switch to tracing 2024-03-25 10:07:31 -05:00
Mattia Schiano
266551e7c9
Allow <input type="file"> without event handlers to open web view file dialog on Desktop (#2134)
* Allowing webview file picker

* cargo fmt
2024-03-24 14:23:29 -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
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
Miles Murgaw
acbf7dfc4f
fix: hot reload blocking (#2127) 2024-03-22 14:36:49 -07:00
Evan Almloff
e012d816eb
fix streaming server functions, and precompress assets in release mode (#2121) 2024-03-20 23:05:50 -07:00
Evan Almloff
a5714e342c
fix bounds on owner props (#2122) 2024-03-20 16:37:08 -07:00
Jonathan Kelley
6c9f991f0b
hotfix: finding hotreload path fails when not running under cargo 2024-03-20 09:54:57 -07:00
Jonathan Kelley
e923c6462c
Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116)
* Fix: css hotreloading being invalidated, watcher not watching cargo/dioxus tomls, add feature to restore window state

* Make clappy hippier

* remove console log

* use simpler css invalidator

* Less flash, remove log on web hotreload

* Fix floating window managed behavior on mac

* clippy...
2024-03-20 09:16:18 -07:00
Jonathan Kelley
44e997f7df
Fix eventhandler optional (#2119) 2024-03-20 09:04:37 -07:00
Evan Almloff
9f283f571f
fix signal error message and add tests (#2118) 2024-03-20 08:45:27 -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
4bb807a3ce
Reduce churn in window behavior 2024-03-18 22:38:33 -07:00
Evan Almloff
d442dac168
Add a menu bar option to the desktop config (#2107)
* add an option to set a custom menu in the desktop config

* Fix rename issue

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-18 22:36:47 -07:00
Jonathan Kelley
10d361a44e
Fix proxy (#2108) 2024-03-18 22:21:07 -07:00
Jonathan Kelley
d8942a255b
Fix #2104: fmt incorrectly using 1-indexing for columns (#2106)
* Fix #2104: fmt incorrectly using 1-indexing for columns

* Clippy...
2024-03-18 18:23:45 -07:00
Jonathan Kelley
2dc6cecf2e
Fix #2043: use formvalue instead of String for forms (#2103)
Fix #2043: use formvalue instead of String for forms
2024-03-18 18:21:08 -07:00
Jonathan Kelley
9c64fc4769
Fix #1938, allow explicit props 2024-03-18 15:34:46 -07:00
Jonathan Kelley
f266213618
Bump to 0.5.0-alpha.2 2024-03-18 02:02:31 -07:00
Jonathan Kelley
6ab6e56de9
Make clippy happy 2024-03-17 21:39:29 -07:00
Jonathan Kelley
be00847199
Don't squawk when running under cargo 2024-03-17 21:15:57 -07:00
Jonathan Kelley
834d490beb
Fix: #2095, #1990
- Don't merge dynamic attributes together unnecessarily
- Walk the workspace until we find a target dir with the dioxusin handle
2024-03-17 21:14:26 -07:00
Jonathan Kelley
0c822d683c
Merge pull request #2069 from ealmloff/resource-dependancies
Manual non-reactive dependancies for use_memo, use_effect, and use_resource
2024-03-17 09:48:26 -07:00
Jonathan Kelley
f9f902732b
Fix: update wry, tao, to fix android issues 2024-03-15 20:12:13 -07:00
Jonathan Kelley
ef288d02d7
Merge branch 'main' into jk/mobile-fixes 2024-03-15 12:20:57 -07:00
Jonathan Kelley
1b8f7023f9
Merge branch 'main' into unwind-into-error-boundary 2024-03-15 12:15:55 -07:00
Evan Almloff
df41df75d0 switch to use_reactive 2024-03-15 11:54:09 -05:00
Evan Almloff
b8c41efb54
Merge branch 'DioxusLabs:main' into resource-dependancies 2024-03-15 08:46:17 -05:00
Jonathan Kelley
25844ae9d3
Fix: make clippy happy, don't set asset dir env 2024-03-15 00:07:33 -07:00
Jonathan Kelley
e3e0bbeda5
Merge branch 'main' into jk/mobile-fixes 2024-03-14 23:13:54 -07:00
Jonathan Kelley
fe5fc1058e
Fix: cargo running desktop shouldn't panic 2024-03-14 23:13:04 -07:00
Jonathan Kelley
7d11984a0e
Chore: bump wry + tao 2024-03-14 23:11:25 -07:00
Jonathan Kelley
6cc950eb9d
Fix: on embedded hotreload don't watch target directory 2024-03-14 23:05:31 -07:00
Jonathan Kelley
9474ad54cc
Make clippy happy 2024-03-14 22:40:23 -07:00
Jonathan Kelley
58233c6a3b
Merge branch 'main' into jk/fix-hotreloading-issues 2024-03-14 22:31:22 -07:00
Jonathan Kelley
f79a8c06d4
Merge pull request #2085 from DioxusLabs/dependabot/npm_and_yarn/packages/extension/follow-redirects-1.15.6
Bump follow-redirects from 1.15.4 to 1.15.6 in /packages/extension
2024-03-14 22:28:48 -07:00
Miles Murgaw
ab2e2c63d5 feat: fix unknown imports 2024-03-14 23:01:14 -04:00
Jonathan Kelley
cee4795f17
Merge pull request #2082 from ealmloff/bump-sledgehammer
Bump sledgehammer bindgen to a stable release
2024-03-14 19:06:51 -07:00
dependabot[bot]
711f812b47
Bump follow-redirects from 1.15.4 to 1.15.6 in /packages/extension
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-15 02:00:43 +00:00
Jonathan Kelley
7cc3264881
Move TUI renderer into blitz repo 2024-03-14 18:54:46 -07:00
Evan Almloff
92416253e0 fix typo in signal docs 2024-03-14 15:07:16 -05:00
Jonathan Kelley
efb21b24ca
Log watched dirs in status console 2024-03-14 09:20:51 -07:00
Jonathan Kelley
bb8b4dc2fb
FIx:
- asset hotreloading for desktop,
- asset dir for dxserve on desktop,
- extend features with platform
2024-03-13 17:15:49 -07:00
Evan Almloff
eeab3658d4 bump sledgehammer bindgen to stable 2024-03-13 19:05:42 -05:00
Evan Almloff
2e7b8cb178 unwind panics into error boundaries 2024-03-13 18:55:57 -05:00
Jonathan Kelley
c532d3ec1a
Merge branch 'main' into jk/fix-hotreloading-issues 2024-03-13 15:11:41 -07:00
Jonathan Kelley
3d699e7a75
Match on more places for asset reloading 2024-03-13 15:10:44 -07:00
Jonathan Kelley
34956cdb31
Merge pull request #2071 from ealmloff/depreciated-write-silent
Restore write_silent as a deprecated function with updated recommendations
2024-03-13 15:05:11 -07:00
Jonathan Kelley
8d8e7edb82
Clean up reloader 2024-03-13 14:36:56 -07:00
Jonathan Kelley
1bdc9d132e
Load tracked assets 2024-03-13 14:35:28 -07:00
Jonathan Kelley
e4f65b7260
Tests: add tests for hotreload and recurse into children 2024-03-13 14:15:34 -07:00
Jonathan Kelley
982b96074a
Add basic hotreload test samples 2024-03-13 13:07:15 -07:00
Evan Almloff
a428c61457 fix the liveview launch function 2024-03-13 13:42:22 -05:00
Evan Almloff
81182f99ff fix and improve signal dependencies example 2024-03-13 12:00:18 -05:00
Evan Almloff
80aeba30c7 Merge branch 'main' into resource-dependancies 2024-03-13 10:03:44 -05:00
Evan Almloff
3866aa2977 simplify use_dependencies docs 2024-03-13 10:03:00 -05:00
Evan Almloff
0951a389f7 add a way to add manual dependency tuple to memos and effects 2024-03-13 09:54:48 -05:00
Evan Almloff
4985cfdfd0 restore write_silent as a deprecated function with updated recommendations 2024-03-13 09:34:49 -05:00
Jonathan Kelley
bca5335f31
fix: hotreloading files with multiple templates, asset hotreloading 2024-03-13 02:13:37 -07:00
Evan Almloff
2bbc609082 add a way to subscribe to a dependency tuple for the use_resource hook 2024-03-12 16:50:03 -05:00
Jonathan Kelley
05476cad76
Merge branch 'main' into jk/fix-hotreloading-issues 2024-03-12 14:38:36 -07:00
Evan Almloff
82ab212414 don't quit serving early if builds fail 2024-03-12 16:37:20 -05:00
Jonathan Kelley
ad7a350d2e
fix hotreloading issues in the CLI 2024-03-12 13:39:42 -07:00
Jonathan Kelley
d180f569cf
Merge pull request #2064 from ealmloff/make-resource-copy
Implement copy for Resource
2024-03-12 13:32:31 -07:00
Jonathan Kelley
b35f74e9d6
Merge pull request #2029 from ealmloff/isomorphic-spawn
Fix memos in children; introduce isomorphic spawn
2024-03-12 13:32:22 -07:00
Evan Almloff
b2607a5b35 Fix temporary reads within rsx 2024-03-12 15:15:36 -05:00
Evan Almloff
81e0469cc2 implement copy for Resource 2024-03-12 15:15:24 -05:00
Jonathan Kelley
41809f9a1b
Merge pull request #2057 from ealmloff/fix-examples-assets
Fix Manganis assets overlapping between examples
2024-03-11 16:33:21 -07:00
Evan Almloff
88e2dc127a Never remove queued tasks without polling during suspense 2024-03-11 17:43:08 -05:00
Evan Almloff
6b84f284c9 fix manganis assets overlapping between examples 2024-03-11 17:11:52 -05:00
Konstantin Kostiuk
a4de322821
fix typo varient -> variant (#2056) 2024-03-11 17:03:34 -05:00
Evan Almloff
3e9a360b55 Merge branch 'main' into isomorphic-spawn 2024-03-11 15:42:47 -05:00
Evan Almloff
f51b5617e1 add a test for the memo hook 2024-03-11 15:33:46 -05:00
Evan Almloff
d575b3e4e4 fix the visibility of the read only signal helper struct 2024-03-11 14:46:51 -05:00
Marc Espin
617b11a352
feat: Add Resource::clear() and also updated Resource docs (#2049)
* feat: Add clear method to Resource and also updated its docs

* Update use_resource.rs
2024-03-11 14:17:20 -05:00
Jonathan Kelley
7303b752ec
Merge pull request #2042 from rtretter/main
Fixed VSCode extension
2024-03-11 10:45:35 -07:00
studystill
3a21ac5710
remove repetitive words (#2046)
Signed-off-by: studystill <chenghuiyue@outlook.com>
2024-03-11 09:49:26 -05:00
JeremyChen
70f97ec787
enhance: avoid failed hot-reload if backup file like .rs~ generate (#2048)
(cherry picked from commit 8565bca11b)

Co-authored-by: Jeremy Chen <jeremychen@djeremychen.com>
2024-03-11 09:30:25 -05:00
toxicvipa
664c9c37cc removed scheme check for formatter and fixed indent bug 2024-03-09 19:32:15 +01:00
toxicvipa
f5a57c7693 implemented formatter for selection 2024-03-09 15:06:31 +01: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
2d2e9dc56a
Merge pull request #2033 from DioxusLabs/jk/kick-sf-on-client
Kick server futures on the client to track reactivity
2024-03-08 18:09:10 -08:00
Jonathan Kelley
47e7f2fd41
Kick server futures on the client 2024-03-08 16:52:03 -08:00
Jonathan Kelley
822fc79531
Merge pull request #2030 from rtretter/main
fixed clippy failing in non-server environment
2024-03-08 15:01:55 -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
rtretter
47cfd212c9 fixed clippy failing in non-server environment 2024-03-08 23:45:50 +01:00
Evan Almloff
bbc81b8f9c fix memos in children; introduce isomorphic spawn 2024-03-08 16:40:31 -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
Robin Tretter
8eda67ecb2
added hot-reload as config option with default to true (#2024) 2024-03-08 14:54:03 -06:00
Evan Almloff
f8a8ee3e29 fix clippy 2024-03-08 12:45:23 -06:00
Evan Almloff
ffc49530f6 implement readable and callable for all structs in the hooks crate 2024-03-08 11:17:28 -06:00
Evan Almloff
98158bdc6f fix headless tests 2024-03-08 10:54:02 -06:00
Evan Almloff
4bc2f4a713 add more docs around lifetime downcasting 2024-03-08 10:46:34 -06:00
Evan Almloff
5f9e5f607b rename take to manually drop 2024-03-08 10:35:27 -06:00
Evan Almloff
60a84956d1 restore lifetime checking for signals 2024-03-08 10:32:57 -06:00
Jonathan Kelley
295c29db5d
Merge pull request #2005 from ealmloff/fix-suspense
Only poll suspended futures, lazy memos
2024-03-07 23:43:52 -08:00
Evan Almloff
9bad802beb clean up dirty scopes module 2024-03-07 21:04:48 -06:00
Evan Almloff
cca92b9fed remove extra logging 2024-03-07 20:51:19 -06:00
Evan Almloff
e72bf5820f reuse remove_task in handle_task_wakeup 2024-03-07 20:47:43 -06:00
Jonathan Kelley
b05ea0b202
FIx: pushroot should actually push the right root on native mutations 2024-03-07 18:02:44 -08:00
Jonathan Kelley
3e5edff724
Fix key errors in autofmt crate 2024-03-07 16:21:51 -08:00
Jonathan Kelley
22e82fc140
undo >=1 check on roots 2024-03-07 16:11:44 -08:00
Jonathan Kelley
ae352f8958
Feat: reject invalid keys 2024-03-07 16:03:00 -08:00
Evan Almloff
3d7f419636 fix memos during suspense 2024-03-07 11:49:51 -06:00
Jonathan Kelley
feb80ce509
remove old interpreter 2024-03-06 20:24:37 -08:00
Jonathan Kelley
c3df8c55e3
fix windows, enable tokio for examples on wasm 2024-03-06 19:59:47 -08:00
Jonathan Kelley
bb5ecd779f
clean up some examples, ensuring stuff works 2024-03-06 19:50:07 -08:00
Jonathan Kelley
2995647e99
trim line feeds 2024-03-06 19:18:41 -08:00
Jonathan Kelley
c99c07db0c
warn 2024-03-06 18:59:27 -08:00
Jonathan Kelley
a2907d138d
dont even hash it! 2024-03-06 18:59:15 -08:00
Jonathan Kelley
c75aa48c74
add warning 2024-03-06 18:43:19 -08:00
Jonathan Kelley
f073322bb3
use md5 instead 2024-03-06 18:43:07 -08:00
Jonathan Kelley
f65ded2cb4
raw bytes instead of str 2024-03-06 18:16:09 -08:00
Jonathan Kelley
99748a611c
move debug 2024-03-06 17:59:05 -08:00
Jonathan Kelley
8df87c64c0
debug windows build 2024-03-06 17:54:20 -08:00
Jonathan Kelley
e02e41d6f1
Attempt even dumber hashing mechanism 2024-03-06 17:43:43 -08:00
Jonathan Kelley
60616d0ba7
fix liveview 2024-03-06 17:26:52 -08:00
Jonathan Kelley
1f6195b2ec
try new hashing strategy 2024-03-06 17:05:03 -08:00
Jonathan Kelley
08d054f5c8
Merge branch 'main' into jk/fix-form-inputs 2024-03-06 16:43:33 -08:00
Jonathan Kelley
81f38a0bc5
cfg out globalhotkey 2024-03-06 16:42:45 -08:00
rtretter
3ffb1facf3 search for first valid platform in features 2024-03-06 21:38:11 +01:00
Jonathan Kelley
f7f416ee3a
Fix hydration 2024-03-06 12:19:59 -08:00
rtretter
f62c81ea0d added automatic platform detection to cli if none is passed 2024-03-06 21:16:51 +01:00
Evan Almloff
492f0329bf remove flume, implement lazier memos 2024-03-06 11:38:28 -06:00
Jonathan Kelley
713ab98dd3
fix els bug 2024-03-06 02:08:18 -08:00
Jonathan Kelley
34b5bc927d
fix sledgehammer bindings on web 2024-03-06 02:04:56 -08:00
Jonathan Kelley
95d7012c8d
fix hashing system, bump wasm-bindgen 2024-03-06 02:00:24 -08:00
Jonathan Kelley
fa04edfed7
use hashmap defaulthasher 2024-03-06 00:11:21 -08:00
Jonathan Kelley
73e7c3e560
Attempt order invariance 2024-03-06 00:05:42 -08:00
Jonathan Kelley
45b824346c
attempt fix on inter 2024-03-05 23:49:27 -08:00
Jonathan Kelley
4b2e426958
clippy, and don't hash invisible files for ts generation 2024-03-05 22:38:38 -08:00
Evan Almloff
716eb11426 update suspend in use_server_future 2024-03-05 18:39:32 -06:00
Evan Almloff
c9603ea984 only poll suspended futures 2024-03-05 18:24:01 -06:00
Jonathan Kelley
39d6580eca
use git version of sledgehammer 2024-03-05 15:14:07 -08:00
Jonathan Kelley
624e58bd78
native file drop 2024-03-05 14:11:12 -08:00
Jonathan Kelley
78d16536a7
wip: native file handles when dropping 🎉 2024-03-05 13:57:28 -08:00
Jonathan Kelley
403e8e2f49
Clean up file uploads in desktop/liveview, remove minify 2024-03-05 13:00:27 -08:00
Jonathan Kelley
56a365742c
clean up native js more 2024-03-05 12:08:33 -08:00
Jonathan Kelley
44833c471f
Merge branch 'main' into jk/fix-form-inputs 2024-03-05 11:18:56 -08:00
Jonathan Kelley
608fec59e5
Merge pull request #1993 from DioxusLabs/fix-effect
Fix effect ordering and futures being run after scopes are dropped
2024-03-05 11:18:17 -08:00
Jonathan Kelley
b751674354
Web works with the js structure 2024-03-05 11:16:34 -08:00
Evan Almloff
287416cfa7 rename flush_sync to wait_for_next_render 2024-03-04 19:52:17 -06:00
Jonathan Kelley
16b38e339d
Merge branch 'main' into jk/fix-form-inputs 2024-03-04 17:46:38 -08:00
Jonathan Kelley
22266cc560
Switch to bun, clean up web implementation 2024-03-04 15:23:48 -08:00
Jonathan Kelley
38a2c04e38
Merge pull request #1983 from marc2332/fix/update-dioxus-router-docs
fix: Update `dioxus-router` docs
2024-03-04 14:21:52 -08:00
Jonathan Kelley
62d79747aa
Merge pull request #1987 from ealmloff/fix-fullstack-history
Fix fullstack history
2024-03-04 14:19:38 -08:00
Evan Almloff
2e3a730ed5 fix clippy 2024-03-04 16:10:04 -06:00
Evan Almloff
568631e331 test signal drops 2024-03-04 16:02:19 -06:00
Evan Almloff
8322b508a7 fix signals leaking memory 2024-03-04 15:51:14 -06:00
Evan Almloff
3827378f68 Merge branch 'main' into fix-effect 2024-03-04 15:40:37 -06:00
Evan Almloff
b42992bad1 add more internal documentation about tasks 2024-03-04 15:38:28 -06:00
Evan Almloff
fc7efd8006 test child future drop behavior 2024-03-04 15:26:16 -06:00
Evan Almloff
797feb5657 remove logging, clean up some code, and fix effect test 2024-03-04 15:09:31 -06:00
Evan Almloff
c4b8ebc1cf separate task and scope tasks 2024-03-04 13:04:22 -06:00
Evan Almloff
78b9b157dc fix formatting 2024-03-04 12:04:09 -06:00
Jonathan Kelley
199173a409
fix navigating when files are dropped 2024-03-01 23:37:46 -08:00
Jonathan Kelley
0ff0eb7846
Use the platform as the base interpreter instead of trying to extend it 2024-03-01 14:23:53 -08:00