Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/old-tigers-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vercel/flags-core": patch
---

[react-native] shim store (AsyncLocalStorage)
13 changes: 13 additions & 0 deletions packages/vercel-flags-core/src/store.native.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type * as upstream from './store';
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nandorojo do we need any specific setup for the build? Right now the store.native.ts file would not be part of the npm package


export const store: typeof upstream.store = {
disable() {},
enterWith(store) {},
exit(callback, ...args) {
return callback(...args);
},
getStore() {
return undefined;
},
run() {},
};
Loading