Expose isAtom from flipper-plugin
Summary: Required for companion in later diffs Reviewed By: passy Differential Revision: D36517737 fbshipit-source-id: ad47ae00cc88f424507284553c7d4eb430691311
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9abce2f48e
commit
e40981ee2e
@@ -1332,6 +1332,12 @@ someService.on('event', (val) => controllerPromise.resolve(val))
|
||||
await controllerPromise.promise
|
||||
```
|
||||
|
||||
### isAtom
|
||||
|
||||
Usage: `isAtom(value)`
|
||||
|
||||
Checks if value is an [Atom](https://github.com/facebook/flipper/blob/566f7108c9efd8aefc8522af645bd0674fb91b20/desktop/flipper-plugin/src/state/atom.tsx#L30). Returns boolean.
|
||||
|
||||
## TestUtils
|
||||
|
||||
The object `TestUtils` as exposed from `flipper-plugin` exposes utilities to write unit tests for Sandy plugins.
|
||||
|
||||
Reference in New Issue
Block a user