Skip to content

Fix: Recording not working if user navigate to other menus - #113

Open
Swapnilden wants to merge 3 commits into
mainfrom
fix/menu-shift-record
Open

Swapnilden wants to merge 3 commits into
mainfrom
fix/menu-shift-record

Conversation

@Swapnilden

Copy link
Copy Markdown
Contributor

created a global recording context to solve this issue
closes #98

import { $authToken } from "../auth/store/auth";
import { $currentTenant } from "../stores/tenants";

const RecordingContext = createContext();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use nanostores for doing this kind of thing,
please study nanostores,
and create a new store for this.
That way we dont have to pass context,

we just use stores like this -
store = useStore(...)

store.operation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recording not working if user navigate to other menus

2 participants