Commit graph

264 commits

Author SHA1 Message Date
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
Evan Almloff
c43bbe6aa5
fix the relative paths issue in the fullstack crates.io build (#2248) 2024-04-04 18:30:14 -07:00
Evan Almloff
11bf5ae34f
fix firefox refreshing loop in debug mode (#2214) 2024-04-02 10:52:40 -07:00
Evan Almloff
36f67bd5e2 update 0.4 doc links to 0.5 2024-03-27 20:42:07 -05:00
Jonathan Kelley
537f064001
Remove some old docs, cleanup some readmes 2024-03-27 17:28:30 -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
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
e012d816eb
fix streaming server functions, and precompress assets in release mode (#2121) 2024-03-20 23:05:50 -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
3d699e7a75
Match on more places for asset reloading 2024-03-13 15:10:44 -07:00
Jonathan Kelley
ad7a350d2e
fix hotreloading issues in the CLI 2024-03-12 13:39:42 -07:00
studystill
3a21ac5710
remove repetitive words (#2046)
Signed-off-by: studystill <chenghuiyue@outlook.com>
2024-03-11 09:49:26 -05:00
Jonathan Kelley
47e7f2fd41
Kick server futures on the client 2024-03-08 16:52:03 -08:00
Evan Almloff
f8a8ee3e29 fix clippy 2024-03-08 12:45:23 -06:00
Evan Almloff
9bad802beb clean up dirty scopes module 2024-03-07 21:04:48 -06:00
Evan Almloff
716eb11426 update suspend in use_server_future 2024-03-05 18:39:32 -06: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
55f308363d expose non-blocking functions to read and write to the fullstack request 2024-02-29 10:39:02 -06:00
Jonathan Kelley
36fe5e30cb
chore: clean up cargo.tomls to enable releasing 2024-02-21 14:16:01 -08:00
Evan Almloff
36ae7ec12e wrap fullstack rebuilds in block in place 2024-02-19 14:59:58 -06:00
Evan Almloff
c4a4a31eec Merge branch 'master' into pr/atty303/1948 2024-02-19 08:35:31 -06:00
Jonathan Kelley
ebdb98bff2
Make clippy happy, pass tests 2024-02-18 21:08:48 -08:00
Jonathan Kelley
d732269b8f
backend proxy tests almost work! 2024-02-18 09:45:27 -08:00
Evan Almloff
14b4af4bbc fix cargo check all features except the router 2024-02-16 16:22:13 -06:00
Evan Almloff
2952578a2e add a streaming example 2024-02-16 16:04:12 -06:00
Evan Almloff
e7d8a25d17 get the dioxus CLI compiling 2024-02-16 14:55:44 -06:00
Evan Almloff
30af559275 add tracing to server function registration 2024-02-16 14:19:36 -06:00
Koji AGAWA
1f0e03ca19 feat(fullstack): support wasm target 2024-02-17 05:12:33 +09:00
Evan Almloff
194d90e66f fix a few CLI errors 2024-02-16 12:39:36 -06:00
Evan Almloff
e745212157 bump server functions 2024-02-16 12:17:01 -06:00
Evan Almloff
0ef29b7d75 reorganize fullstack 2024-02-16 09:03:35 -06:00
Jonathan Kelley
64a321eacc
Get more axum stuff upgraded to 0.7 2024-02-15 18:59:57 -08:00
Jonathan Kelley
214a907adc
Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Jonathan Kelley
ea34eee20a
Remove ssr eval from fullstack 2024-02-14 17:00:12 -08:00
Evan Almloff
b4d17abfc1 document all features 2024-02-09 12:15:59 -06:00
Miles Murgaw
3c1028c523 fix: prerelease doc 2024-02-08 17:53:45 -05:00
Evan Almloff
b4f2a925c7 fix fullstack playwright test features 2024-02-05 15:04:49 -06:00
Evan Almloff
b63c14fab8 change config flags from ssr to server to match the features 2024-02-05 14:20:15 -06:00
Jonathan Kelley
7d78e5e250
Fix warnings and compile errors 2024-02-03 13:10:16 -08:00
Evan Almloff
e767e49d5e switch to server instead of ssr everywhere 2024-02-02 19:32:18 -06:00
Evan Almloff
1afada528d fix user server future 2024-02-02 18:01:57 -06:00
Evan Almloff
1c4e1d84ea serialize data in the server and deserialize data in the client 2024-02-02 17:23:00 -06:00
Jonathan Kelley
f44b72f5e1
server_future uses use_resource 2024-02-02 14:08:21 -08:00
Jonathan Kelley
7c2947a131
Implement effects using reactivecontext 2024-02-01 13:21:52 -08:00
Jonathan Kelley
0c71b95e82
skeleton of use_server_future with reactivity 2024-02-01 13:21:52 -08:00
Jonathan Kelley
6818bbe10a
Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 2024-01-31 16:33:53 -08:00
Jonathan Kelley
8f07d881a6
Switch todo!() to unreachable!/unimplemented! where it matters 2024-01-31 16:26:20 -08:00
Evan Almloff
8eda785ace try to pull the default out directory for the fullstack server from the config 2024-01-31 16:50:54 -06:00
Evan Almloff
fb01a276b0 fix axum build in fullstack 2024-01-31 15:25:19 -06:00
Jonathan Kelley
a72c035de4
Fix cargo check on examples 2024-01-30 17:59:57 -08:00
Jonathan Kelley
d34538f4da
Add memochain example 2024-01-26 22:33:41 -08:00
Evan Almloff
0932130e87 include more platforms in the launch builder 2024-01-22 08:58:35 -06:00
Jonathan Kelley
728a26a2cc
Fix borrowmut error in nested spawns 2024-01-19 22:01:21 -08:00
Jonathan Kelley
85c7c22619
Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley
391fe15db8
Fix context trait params 2024-01-18 19:49:20 -08:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working 2024-01-18 19:27:55 -08:00
Jonathan Kelley
d8af9b7ed1
Fix compile checks on numerous packages using --all --all-features 2024-01-18 16:27:43 -08:00
Evan Almloff
89b1e56fc3 fix other fullstack adapters 2024-01-18 11:39:51 -06:00
Evan Almloff
694bef0d93 fix hydration 2024-01-18 10:47:10 -06:00
Evan Almloff
a323962a22 fix the fullstack platform with the new launch API 2024-01-18 10:19:39 -06:00
Evan Almloff
25ad3da659 remove some generics from LaunchBuilder 2024-01-17 20:15:16 -06:00
Evan Almloff
ae3e167cfe make fullstack hello world compile 2024-01-17 16:58:03 -06:00
Evan Almloff
499e81fa82 fix fullstack send bound 2024-01-17 15:46:29 -06:00
Evan Almloff
0c532c5e0c work on restoring fullstack 2024-01-17 14:02:49 -06:00
Evan Almloff
e65c5f0eb3 depreciate the render macro 2024-01-16 13:18:46 -06:00
Evan Almloff
af1749d7be re export renderers in dioxus 2024-01-15 19:14:11 -06:00
Jonathan Kelley
9881a94e67
Remove cx in more places 2024-01-13 21:18:36 -08: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
2ae3241cc0
Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
Evan Almloff
e004c1722f set the required environment variable for manganis support 2024-01-10 11:19:51 -06:00
Evan Almloff
663296ae45 make collect-assets not optional in dioxus fullstack 2024-01-09 13:58:28 -06:00
Jonathan Kelley
28a9dc6805
Pin assets sha to keep CI in check 2024-01-08 14:54:02 -08:00
ealmloff
01c2691953
fix duplicate serde dependancy 2024-01-08 13:30:08 -06:00
Evan Almloff
b180b501f7 Merge branch 'master' into fullstack-binary-size-compile-times 2024-01-08 13:18:05 -06:00
Evan Almloff
f4af297777 merge upstream 2024-01-06 16:14:22 -06:00
Evan Almloff
3865f44081 make desktop compile 2024-01-05 14:39:45 -06:00
Evan Almloff
b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Jonathan Kelley
1a8bf13ff5
Merge branch 'master' into resilient-hydration 2024-01-04 10:28:41 -08:00
Jonathan Kelley
922d9c8c05
Merge branch 'master' into fix-event-bubbling 2024-01-04 10:06:27 -08:00
Jonathan Kelley
20a080d6c0
Merge pull request #1738 from ealmloff/bump-salvo-utils
Bump the version of Salvo
2024-01-04 09:55:50 -08:00
Evan Almloff
422df68fea fix formatting 2024-01-03 15:35:24 -06:00
ealmloff
937be8b752
fix the on double click event and depreciate ondblclick (#1743) 2024-01-03 14:02:08 -06:00
Evan Almloff
b7aea9653f fix server cached docs 2023-12-27 10:25:42 -06:00
Evan Almloff
e2646e655e fix hydration after suspense 2023-12-27 10:17:18 -06:00
Evan Almloff
8b125231f0 make backend and frontend builds happen in parallel 2023-12-21 18:04:35 -06:00
Evan Almloff
37e9876a70 bump salvo 2023-12-20 15:18:20 -06:00
Evan Almloff
2d7d721fd6 make hydration more resilient using ids to hydrate 2023-12-19 16:02:07 -06:00
ealmloff
56478d1856
Merge branch 'DioxusLabs:master' into fix-event-bubbling 2023-12-16 06:34:00 -06:00
Evan Almloff
66e2c02bf7 Merge branch 'master' into intigrate-collect-assets 2023-12-08 08:49:17 -06:00
Evan Almloff
df57cc7d9c fix disconnects that happen while a server function is being resolved 2023-12-07 08:29:14 -06:00
Jonathan Kelley
3b63791ec1
Merge pull request #1485 from ealmloff/make-fullstack-layer-public
Make the layer module public in fullstack
2023-12-06 21:34:38 -08:00
Jonathan Kelley
ae8eaf80a2
Merge pull request #1612 from ealmloff/ssr-eval
Add a noop evaluator to the ssr renderer
2023-12-06 21:17:36 -08:00
Ben Sully
04fd2487b3
feat(fullstack): add render_handler_with_state (#1687)
* feat(fullstack): add `render_handler_with_state`

When using server functions, the current pattern to access state such as
database connections is to use `register_server_fns_with_handler` on an
Axum router and 'inject' the state into the context provided to the
server function. However, this only affects function calls which go via
the Axum router; SSR renders bypass this, and therefore don't have
access to any state.

This commit adds an alternative `render_handler` which accepts some
additional state. That state is injected into the context in a
similar manner to `register_server_fns_with_handler`. SSR renders can
then proceed to run in the same way as HTTP calls.

* Change state object to 'inject_state' callback

Also add a compiling doctest example.

* remove the explicit for<'a> lifetime

* remove unused assets_path from render_handler_with_context example

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-12-05 14:10:18 -06:00
Evan Almloff
23090cb56b optimize fullstack compile times 2023-11-21 14:46:47 -06:00
XiaoZhang
aa284d7e93
Fix grammar typo in comment (#1652) 2023-11-20 08:24:16 -06:00
Evan Almloff
a120af33ad Merge branch 'master' into fix-event-bubbling 2023-11-11 17:53:47 -06:00