amplitude / amplitude/Amplitude-TypeScript
React-native Drop plugin throws error
- 主要语言
- TypeScript
- 星标
- 180
- 派生
- 68
- 平均合并
- 3 天 1 小时
- 30 天内合并 PR
- 29
描述
## Expected Behavior
Drop event plugin like in the [example](https://www.docs.developers.amplitude.com/data/sdk-plugins/#enrichment-type-plugin_1) (return null in execute) should ignore the event.
## Current Behavior
The event is dropped, but there's an error (Logger Error) without any details.
## Steps to Reproduce
```
const mockPlugin: EnrichmentPlugin = {
name: 'mock-plugin',
type: 'enrichment',
setup: async () => Promise.resolve(),
execute: async (event: Event) => {
console.debug('[metrics-react-native] droping', event)
return Promise.resolve(null)
},
}
```
## Environment
- "@amplitude/analytics-react-native": "^1.3.1",
- "@amplitude/ampli": "^1.31.5",
- Installation Method: yarn
- Browser and Version: react-native Android
贡献指南
评估
这个 Issue 还没有评估数据。