Chris
15d4ca0638
feat(axum): provide state to server fn context ( #2257 )
...
Note that this is a minimal implementation and will __not__ allow the
user to `expect_state` if they have external calls to rendering their
app (i.e. using `render_app_to_*` directly).
2024-02-04 19:26:21 -05:00
zoomiti
85c3755f6d
fix: bug with percent decoding of url params ( #2251 )
2024-02-04 19:24:02 -05:00
Sam Judelson
66ea072bc0
docs: a note to HtmlElement<El>
about Deref
( #2218 )
2024-02-04 15:34:39 -05:00
Joris Hartog
b0b3c21285
docs: fix broken link in leptos_router ( #2256 )
2024-02-04 15:29:34 -05:00
Greg Johnston
56088a9ead
fix: error rather than panicking if unable to send response in Axum integration ( #2241 )
...
* fix: error rather than panicking if unable to send response in Axum integration
2024-02-03 19:18:41 -05:00
martin frances
69d25d9c63
examples/hackernews: Add a "Suspense" wrapper. ( #2253 )
...
This warning appears in the browser's console log.
```
hackernews.js:933 At src/routes/stories.rs:39:17, you are reading a resource in `hydrate` mode outside a <Suspense/> or <Transition/>. This can cause hydration mismatch errors and loses out on a significant performance optimization. To fix this issue, you can either:
1. Wrap the place where you read the resource in a <Suspense/> or <Transition/> component, or
2. Switch to using create_local_resource(), which will wait to load the resource until the app is hydrated on the client side. (This will have worse performance in most cases.)
```
2024-02-03 14:24:46 -08:00
martin frances
5029b8f315
Chore: Minor, ran ``cargo fmt
`` ( #2254 )
2024-02-03 14:24:12 -08:00
martin frances
0cba7bc22b
example/counter_isomorphic Removed console warning. ( #2244 )
...
This warning is seen in the browsers console window.
```
counter_isomorphic.js:1068 At src/counters.rs:138:17, you are reading a resource in `hydrate` mode outside a <Suspense/> or <Transition/>. This can cause hydration mismatch errors and loses out on a significant performance optimization. To fix this issue, you can either:
1. Wrap the place where you read the resource in a <Suspense/> or <Transition/> component, or
2. Switch to using create_local_resource(), which will wait to load the resource until the app is hydrated on the client side. (This will have worse performance in most cases.)
```
Two derived signals "value" and "error_msg" need to be wrapped in a <Suspense> block.
"value" falls back to just the initial text.
"error" uses the default fallback.
2024-02-01 16:50:15 -08:00
Michael Kadziela
fb97c50886
Update rkyv example button text to accurately reflect what it does ( #2250 )
2024-02-01 16:49:29 -08:00
Greg Johnston
f1bc734dcf
0.6.5
2024-01-31 19:40:41 -05:00
Greg Johnston
f71b4aae69
feat: easily create custom server fn clients ( #2247 )
2024-01-31 09:15:30 -05:00
Greg Johnston
a834c03974
fix: bug with Actix redirects ( #2246 )
2024-01-31 09:14:40 -05:00
Greg Johnston
595013579c
0.6.4
2024-01-30 09:17:52 -05:00
Greg Johnston
8b1bd1ae9e
Merge pull request #2240 from leptos-rs/err-serialization
...
fix: serialization error during SSR on ServerFnError
2024-01-29 16:32:55 -05:00
Greg Johnston
6ef1531059
example: file upload with streaming progress bar ( #2242 )
2024-01-29 15:20:19 -05:00
Greg Johnston
9f1406250e
chore: update deprecated .remove()
method on IndexSet
2024-01-29 11:32:15 -05:00
Greg Johnston
1f6a892291
fix: serialization error during SSR on ServerFnError
2024-01-29 10:36:08 -05:00
Greg Johnston
0ff1e279a2
fix: correctly track source in create_local_resource
( #2238 )
2024-01-28 10:09:03 -08:00
Chris
c6096cc2a0
chore: define edtion = "2021"
in rustfmt.toml
( #2235 )
2024-01-27 16:04:25 -08:00
Greg Johnston
8a2ae7fc7c
\v0.6.3\
2024-01-26 21:00:21 -05:00
Greg Johnston
9de34b74cf
0.6.2
2024-01-26 18:07:04 -05:00
Greg Johnston
1b5961edaa
fix: fix type inference on extract()
functions ( #2233 )
2024-01-26 17:54:42 -05:00
Greg Johnston
26d1aee9ad
Update README.md framework comparisons ( #2232 )
2024-01-26 17:01:26 -05:00
benwis
2bf09384df
0.6.1
...
Signed-off-by: benwis <ben@celcyon.com>
2024-01-26 12:32:14 -08:00
benwis
ac12e1a411
0.6.0
...
Signed-off-by: benwis <ben@celcyon.com>
2024-01-26 11:54:07 -08:00
Greg Johnston
b367b68a43
fix: use #[server(default)]
to pass use default values for a field ( #2231 )
2024-01-26 14:46:31 -05:00
Greg Johnston
1f9dad421f
fix: allow paths to ServerFnError
type ( #2230 )
2024-01-26 11:32:43 -08:00
Greg Johnston
4648fb2cfc
Update README.md
2024-01-25 20:34:15 -05:00
Saber Haj Rabiee
817ec045f7
chore: fix import of quote::quote
( #2227 )
2024-01-25 17:48:41 -05:00
Greg Johnston
ca3806e6bc
v0.6.0-rc1
2024-01-24 21:35:14 -05:00
Greg Johnston
936c2077c3
Merge pull request #2222 from leptos-rs/2221
...
fix: `.refetch()` should not include any tracked reads
2024-01-24 20:44:51 -05:00
Greg Johnston
b3b18875c6
chore: allow unknown lints
2024-01-24 19:43:28 -05:00
Greg Johnston
5cbab48713
chore: avoid possible false positive in cargo check
2024-01-24 19:38:16 -05:00
Greg Johnston
5a8880dd2e
fix: correctly track in the effect that creates the resource
2024-01-24 16:18:45 -05:00
Greg Johnston
ea6c957f3d
fix: .refetch()
should not track any reads ( closes #2221 )
2024-01-23 11:08:50 -05:00
Greg Johnston
694e5f1cb3
fix: cast to correct type on Memo::try_with_untracked
2024-01-23 11:08:33 -05:00
Greg Johnston
fce2c727ab
feat: add support for custom encodings to #[server]
macro ( #2216 ) ( closes #2210 )
2024-01-21 16:14:02 -05:00
Greg Johnston
7d1ce45a57
chore: minimize features activated with leptos_axum
's default feature ( #1846 ) ( #2213 )
...
- `leptos_axum` default feature:
- remove `tokio/full`, `axum/macros`
- add `tokio/fs`, `tokio/sync`
- example `leptos-tailwind-axum`:
- enable `tokio`'s `rt-multi-thread` and `macros` features
- example `ssr_modes_axum`:
- enable `tokio`'s `rt-multi-thread` and `macros` features
Co-authored-by: Paul Nettleton <paulnett7@hotmail.com>
2024-01-21 15:22:46 -05:00
Niklas Eicker
997b99081b
change: for static routes, remove .static
and provide additional context for static_params closures ( #2207 )
2024-01-21 13:33:05 -05:00
Chris
d33e57d4b7
feat: Default
for LeptosOptions
, ConfFile
( #2208 )
...
Co-authored-by: chrisp60 <gh@cperry.me>
2024-01-21 13:26:10 -05:00
Greg Johnston
b450f0fd10
fix: don't enable tracing
feature on leptos
by default ( #2211 )
2024-01-20 17:58:22 -05:00
Greg Johnston
c84c6ee8cd
Merge pull request #2158 from leptos-rs/leptos_v0.6
2024-01-20 15:58:25 -05:00
Greg Johnston
567644df8f
clarify docs here
2024-01-20 14:29:22 -05:00
Greg Johnston
39f5481b8c
clean up in docs and rename Axum extract() to match Actix extract()
2024-01-20 14:29:08 -05:00
Greg Johnston
c88bfbe0a0
tweak sets of features for CI
2024-01-20 14:18:25 -05:00
Greg Johnston
40da1fe94e
clippy
2024-01-20 14:16:13 -05:00
Greg Johnston
8df46fcdb9
examples: use old Axum version of hackernews_js_fetch
until supported by axum-js-fetch
2024-01-20 12:39:16 -05:00
Greg Johnston
b4a1d90327
clean up for CI
2024-01-20 12:32:51 -05:00
Chris
d746f83387
docs: View::render_to_string
panic ( #2200 )
...
Co-authored-by: chrisp60 <gh@cperry.me>
2024-01-19 17:07:39 -08:00
Greg Johnston
2092c40bc7
missing derives
2024-01-19 18:21:57 -05:00