From fd6888cce41a03fd4269fa8e243fcb19f6e0a05f Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 13 Apr 2025 22:48:34 +0300 Subject: Update import paths and subscription count method --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6e85666..53e5254 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Create scaleable event-driven applications with EventX, inspired by [re-frame](h This is an example application that demonstrates how to use the EventX library. It has a single starting point event called `request`, which returns an updated state, which changes the `counter`. When that state changes, the subscriber for the `counter` state fires. ```typescript -import EventX from "eventx"; +import EventX from "@askonmm/eventx"; type AppState = { counter: number; @@ -51,7 +51,7 @@ npm i @askonmm/eventx At the core of your application is state. You start by initiating EventX with some initial state, like so: ```typescript -import eventx from "eventx"; +import eventx from "@askonmm/eventx"; type AppState = { counter: number; @@ -201,10 +201,10 @@ If you want to get the number of subscriptions for a specific event or state cha ```typescript // State change subscriptions -$.getSubscriptionCount("$counter"); +$.subscriptionCount("$counter"); // Event subscriptions -$.getSubscriptionCount("some-event-name"); +$.subscriptionCount("some-event-name"); ``` #### Get all subscriptions -- cgit v1.2.3