Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(analytics): ts logEvent params arg should be optional #2822

Merged
merged 4 commits into from
Nov 25, 2019
Merged

fix(analytics): ts logEvent params arg should be optional #2822

merged 4 commits into from
Nov 25, 2019

Conversation

TomBerriot
Copy link
Contributor

@TomBerriot TomBerriot commented Nov 5, 2019

Summary

Looking at packages/analytics/lib/index.js, the logEvent function takes a default object value for the second params parameter, and TS and Flow type comments mention that this parameter should be optional.

We have been using logEvent multiple times in our project without the params argument.

Checklist

  • Flow types updated
  • Typescript types updated

Release Plan

[TYPES] [ENHANCEMENT] [ANALYTICS] - Update typescript and flow types with logEvent optional parameter


Think react-native-firebase is great? Please consider supporting the project with any of the below:

@CLAassistant
Copy link

CLAassistant commented Nov 5, 2019

CLA assistant check
All committers have signed the CLA.

@Salakar Salakar added plugin: analytics Google Analytics for Firebase tools: typings TypeScript / Flow labels Nov 23, 2019
@Salakar Salakar added this to the v6.1.0 milestone Nov 23, 2019
@Salakar Salakar changed the title fix(analytics): Fix incorect Typescript logEvent params type and update Flow fix(analytics): ts logEvent params arg should be optional Nov 25, 2019
@Salakar Salakar merged commit 3b8757c into invertase:master Nov 25, 2019
Salakar added a commit that referenced this pull request Nov 25, 2019
andersondanilo pushed a commit to vixtech/react-native-firebase that referenced this pull request Nov 9, 2020
…2822)

* Fix analytics log event params not optional when it should be

* Update Flow analytics log event type not in sync
andersondanilo pushed a commit to vixtech/react-native-firebase that referenced this pull request Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: analytics Google Analytics for Firebase tools: typings TypeScript / Flow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants