move ScopeId methods to the runtime (#4723)
* move `ScopeId` methods to runtime methods * cargo check unused * wip... * wip... * fix consume context * fix test * guard hoisted * fix doc comment
This commit is contained in:
1 parent
c56bac04f4
commit
c29cef4ea3
40 files changed
+466
-697
No files matched your search
@@ -166,7 +166,7 @@ impl ToTokens for TemplateBody {
|
||||
#index
|
||||
);
|
||||
|
||||
dioxus_core::Runtime::current().ok().map(|_| __TEMPLATE.read())
|
||||
dioxus_core::Runtime::try_current().map(|_| __TEMPLATE.read())
|
||||
};
|
||||
// If the template has not been hot reloaded, we always use the original template
|
||||
// Templates nested within macros may be merged because they have the same file-line-column-index
|
||||
|
||||
Reference in new issue
Block a user