mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-14 00:27:12 +00:00
Resolve ambiguous main import error
This commit is contained in:
parent
96238c553e
commit
c17c6549cf
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ cfg_if! {
|
|||
use crate::counters::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn main() {
|
||||
pub fn hydrate() {
|
||||
console_error_panic_hook::set_once();
|
||||
_ = console_log::init_with_level(log::Level::Debug);
|
||||
console_error_panic_hook::set_once();
|
||||
|
|
|
@ -28,7 +28,7 @@ cfg_if! {
|
|||
<body>
|
||||
{}
|
||||
</body>
|
||||
<script type="module">import init, {{ main }} from './pkg/leptos_counter_isomorphic.js'; init().then(main);</script>
|
||||
<script type="module">import init, {{ hydrate }} from './pkg/leptos_counter_isomorphic.js'; init().then(hydrate);</script>
|
||||
</html>"#,
|
||||
run_scope({
|
||||
move |cx| {
|
||||
|
|
Loading…
Reference in a new issue