Skip to content

Commit

Permalink
refactor: cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Jan 22, 2022
1 parent 101f92a commit ee29ba1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions examples/basic/.perseus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ pub fn run() -> Result<(), JsValue> {
Rc::new(RefCell::new(Box::new(Option::<()>::None)));

// TODO Try to fetch a previous frozen app
let frozen_app: Option<Rc<FrozenApp>> = Some(Rc::new(FrozenApp {
global_state: r#"{"test":"Hello from the frozen app!"}"#.to_string(),
route: "".to_string(),
page_state_store: {
let mut map = std::collections::HashMap::new();
map.insert("".to_string(), r#"{"username":"Sam"}"#.to_string());
map
},
}));
// let frozen_app: Option<Rc<FrozenApp>> = Some(Rc::new(FrozenApp {
// global_state: r#"{"test":"Hello from the frozen app!"}"#.to_string(),
// route: "".to_string(),
// page_state_store: {
// let mut map = std::collections::HashMap::new();
// map.insert("".to_string(), r#"{"username":"Sam"}"#.to_string());
// map
// },
// }));
let frozen_app: Option<Rc<FrozenApp>> = None;

// Create the router we'll use for this app, based on the user's app definition
create_app_route! {
Expand Down

0 comments on commit ee29ba1

Please sign in to comment.