You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Correct LifecycleStore docs
This commit is contained in:
@@ -20,13 +20,6 @@ import {Store} from 'flux/utils';
|
|||||||
* A class for storing application state to do with login/registration. This is a simple
|
* A class for storing application state to do with login/registration. This is a simple
|
||||||
* flux store that listens for actions and updates its state accordingly, informing any
|
* flux store that listens for actions and updates its state accordingly, informing any
|
||||||
* listeners (views) of state changes.
|
* listeners (views) of state changes.
|
||||||
*
|
|
||||||
* Usage:
|
|
||||||
* ```
|
|
||||||
* lifecycleStore.addListener(() => {
|
|
||||||
* this.setState({ cachedPassword: lifecycleStore.getCachedPassword() })
|
|
||||||
* })
|
|
||||||
* ```
|
|
||||||
*/
|
*/
|
||||||
class LifecycleStore extends Store {
|
class LifecycleStore extends Store {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user