2.1.0
Storage
Old method
import {
Storage,
Application
} from 'Dashboard'
class MyApp extends Application {
handleSaveToStoreage() {
Storage.save(key, data)
}
}
Replacement
import {
cache,
Application
} from 'Dashboard'
class MyApp extends Application {
handleSaveToStoreage() {
cache({
key,
data
})
}
}
Documentation
pagecachethis.cache/this.uncache
Old method
import { Application } from 'Dashboard'
class MyApp extends Application {
handleCache() {
this.cache(key, data)
}
handleUncache() {
this.uncache(key)
}
}
Replacement
import {
cache,
Application
} from 'Dashboard'
class MyApp extends Application {
handleCache() {
cache({
key,
data,
method: 'GET'
})
}
handleUncache() {
cache({
key,
method: 'DELETE'
})
}
}
Documentation
pagecachethis.store/this.unstore
Old method
import { Application } from 'Dashboard'
class MyApp extends Application {
handleStore() {
this.store(key, data)
}
handleUnstore() {
this.unstore(key)
}
}
Replacement
import {
store,
Application
} from 'Dashboard'
class MyApp extends Application {
handleStore() {
store({
key,
data,
bundle,
method: 'GET'
})
}
handleUnstore() {
store({
key,
bundle,
method: 'DELETE'
})
}
}
Documentation
pagestoreLast updated