Pushing Records into the Store
The Store provides a cache of all the previously loaded records. This enables dynamic routing, including back-navigation, to see a consistent set of records, whether dirty or not, which has always been one of Ember's core strengths.
Records can be pushed into the cache ahead of time, to avoid later network operations.
See Fetching Data
in the routing guide for how to obtain a reference to the application-wide Store.
Pushing Records
Use Store::push() to push a record into the store.
use crate::models::customer::Customer;
let customer = Customer{
id: "123".to_string(),
name: "Acme Widgets".to_string(),
..Default::default()
};
store.push(customer)?;