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

rg4js('boot') not just for React Native #458

Closed
mcfarljw opened this issue Apr 29, 2022 · 4 comments
Closed

rg4js('boot') not just for React Native #458

mcfarljw opened this issue Apr 29, 2022 · 4 comments

Comments

@mcfarljw
Copy link
Contributor

mcfarljw commented Apr 29, 2022

rg4js('boot'); // For React Native only: add this after all other config options have been called

It's a bit confused from the docs which imply that rg4js('boot') is only required with React Native apps. I have an Ionic Capacitor app and errors don't send unless I call the boot action.

As a bonus it's also be great to get the typing updates as they don't currently include the boot parameter which requires doing rg4js('boot' as any) for TypeScript to compile. Here is the link to the current typings: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/raygun4js

@mcfarljw mcfarljw changed the title rg4js('boot') not just for React Native rg4js('boot') not just for React Native Apr 29, 2022
@Widdershin
Copy link
Contributor

Hi @mcfarljw,

Thanks for the issue. Sorry about any confusion around this behaviour.

The current plan is to fix the underlying issue that requires calling 'boot' manually, which I've opened #454 to track. That should hopefully be a smoother experience for users.

@mcfarljw
Copy link
Contributor Author

mcfarljw commented May 5, 2022

Thanks I've subscribed to that issue instead.

@mcfarljw mcfarljw closed this as completed May 5, 2022
@Codex-
Copy link
Contributor

Codex- commented Jul 22, 2022

To address the 'boot' as any issue I have raised a PR here: DefinitelyTyped/DefinitelyTyped#61397

This simply adds the API: (key: "boot"): void;

@Codex-
Copy link
Contributor

Codex- commented Jul 25, 2022

The typings PR has been merged and released :)

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

No branches or pull requests

3 participants