Skip to content

Commit

Permalink
clean up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Jan 19, 2024
1 parent fdd5765 commit 1b1e027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/counter_isomorphic/src/counters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use leptos_router::*;
use tracing::instrument;

#[cfg(feature = "ssr")]
mod ssr_imports {
pub mod ssr_imports {
pub use broadcaster::BroadcastChannel;
pub use once_cell::sync::OnceCell;
pub use std::sync::atomic::{AtomicI32, Ordering};
Expand Down
1 change: 1 addition & 0 deletions examples/counter_isomorphic/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use leptos_actix::{generate_route_list, LeptosRoutes};

#[get("/api/events")]
async fn counter_events() -> impl Responder {
use crate::counters::ssr_imports::*;
use futures::StreamExt;

let stream = futures::stream::once(async {
Expand Down

0 comments on commit 1b1e027

Please sign in to comment.