Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

props not registered with breadcrumbs #44

Closed
Bickson opened this issue Dec 14, 2016 · 5 comments
Closed

props not registered with breadcrumbs #44

Bickson opened this issue Dec 14, 2016 · 5 comments

Comments

@Bickson
Copy link

Bickson commented Dec 14, 2016

Cant seem to get component props to register with breadcrumbs.

componentWillReceiveProps (newProps) {
    this.props.bugsnagClient.leaveBreadcrumb('New Props to MyComponent', {
      type: 'process',
      props: newProps.data,
      component: '<MyComponent/>'
    })
  }
componentWillMount () {
    this.props.bugsnagClient.leaveBreadcrumb('Load MyComponent', {
      type: 'navigation',
      props: this.props.data,
      component: '<MyComponent />'
    })
  }

Anyone else experience this issue ?

@kattrali
Copy link
Contributor

Thanks for the report, @Bickson. What is the error message encountered, and can you provide a general idea of what the newProps structure would be?

@the-simian
Copy link

the-simian commented Dec 30, 2016

@Bickson is this a repeat of this issue : #36 ?

I suspected the implemented fix might not be handling nested objects, which is what this.props.data most likely is.

@kattrali
Copy link
Contributor

@the-simian That was my suspicion as well, though I didn’t want to assume.

@Bickson
Copy link
Author

Bickson commented Dec 31, 2016

I don't remember getting a warning, but i will try again and report back shortly.
Thank you!

@kattrali
Copy link
Contributor

Feel free to reopen if the issue recurs. Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants