Skip to content

Instantly share code, notes, and snippets.

@agnanachandran
Last active February 15, 2018 21:38
Show Gist options
  • Select an option

  • Save agnanachandran/33f87c01185dd2ca59aff5512b68b8e2 to your computer and use it in GitHub Desktop.

Select an option

Save agnanachandran/33f87c01185dd2ca59aff5512b68b8e2 to your computer and use it in GitHub Desktop.

Revisions

  1. agnanachandran revised this gist Feb 15, 2018. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions root_store.ts
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,10 @@
    class RootStore {
    ...
    notificationsStore: NotificationsStore;
    ...

    initialize(): void {
    // Retrieve initial state of notifications
    const notifications: Notification[] = ...

    // Initialize stores
    this.notificationsStore = NotificationsStore.initialize(notifications);
    ...
    }
    }
  2. agnanachandran created this gist Feb 15, 2018.
    14 changes: 14 additions & 0 deletions root_store.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    class RootStore {
    ...
    notificationsStore: NotificationsStore;
    ...

    initialize(): void {
    // Retrieve initial state of notifications
    const notifications: Notification[] = ...

    // Initialize stores
    this.notificationsStore = NotificationsStore.initialize(notifications);
    ...
    }
    }