File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ pub trait LazyComponent: 'static {
7474
7575enum LazyState < C : BaseComponent > {
7676 Pending ( Suspension ) ,
77+ #[ allow( unused) ] // Only constructed with feature csr or ssr
7778 Created ( LazyVTable < C > ) ,
7879}
7980
@@ -124,6 +125,7 @@ impl<C: LazyComponent> BaseComponent for Lazy<C> {
124125 // force a re-render with this new state (without a message exchange)
125126 host_scope. schedule_render ( ) ;
126127 }
128+ let _ = ( host_scope, state, vtable) ;
127129 } ) ;
128130 RefCell :: new ( LazyState :: Pending ( suspension) )
129131 } ) ;
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ use super::Key;
1414use crate :: dom_bundle:: Fragment ;
1515#[ cfg( feature = "csr" ) ]
1616use crate :: dom_bundle:: { BSubtree , DomSlot , DynamicDomSlot } ;
17- use crate :: html:: BaseComponent ;
17+ #[ cfg( any( feature = "ssr" , feature = "csr" ) ) ]
18+ use crate :: html:: AnyScope ;
1819#[ cfg( feature = "csr" ) ]
1920use crate :: html:: Scoped ;
20- #[ cfg( any( feature = "ssr" , feature = "csr" ) ) ]
21- use crate :: html:: { AnyScope , Scope } ;
21+ use crate :: html:: { BaseComponent , Scope } ;
2222use crate :: scheduler:: Shared ;
2323#[ cfg( feature = "ssr" ) ]
2424use crate :: { feat_ssr:: VTagKind , platform:: fmt:: BufWriter } ;
You can’t perform that action at this time.
0 commit comments