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

Stopped working #260

Open
bayramn opened this issue Nov 17, 2022 · 10 comments
Open

Stopped working #260

bayramn opened this issue Nov 17, 2022 · 10 comments

Comments

@bayramn
Copy link

bayramn commented Nov 17, 2022

All of sudden app crashed and logs stopped working. I am on Expo Managed Flow. I didn't change anything and it does get enabled and called but no logs anymore.

@mohito12
Copy link

mohito12 commented Dec 4, 2022

Same here with CLI RN 0.70.0 . No logs or errors.

@bayramn
Copy link
Author

bayramn commented Dec 4, 2022

Same here with CLI RN 0.70.0 . No logs or errors.

Glad you commented, as I was killing myself trying to figure what have I done wrong. What happened in your case? Did you just install or were you using it before?

@mohito12
Copy link

mohito12 commented Dec 6, 2022

Same here with CLI RN 0.70.0 . No logs or errors.

Glad you commented, as I was killing myself trying to figure what have I done wrong. What happened in your case? Did you just install or were you using it before?

First time install.

@vrgimael
Copy link

vrgimael commented Jan 4, 2023

Also can't get it work anymore, and I've been able to use it in the same project in the past - very strange

@Waltari10
Copy link

On RN 0.70.3 and not working. Has been working before in same project and the package has been a life saver 🙏

Could someone confirm if they have had the package work with 0.70.x or above?

@aurimasniekis
Copy link

aurimasniekis commented Feb 11, 2023

I also have one project with the same current packages which currently works with no issues, and another project with the same version doesn't anymore.

I found a sandbox that was working and changed to the newest packages and it doesn't work anymore.

Work: https://codesandbox.io/s/nice-bouman-czdgli
Doesn't work: https://codesandbox.io/s/amazing-river-kpd1pq

The sandbox stopped working after switching to React v17

@giantslogik
Copy link

Package didn't work for me.

@bayramn
Copy link
Author

bayramn commented Oct 29, 2023

I emailed Vitali when I opened this issue but he said never tried it on React Native and couldn’t help. I tried ask follow up question on FlatList and Context data cuz there was sth to do with these but he didn’t respond. So I have given up.

@kg-currenxie
Copy link

"react-native": "0.73.0" here. Not working :/

module.exports = {
  presets: [
    'module:@react-native/babel-preset',
    '@babel/preset-typescript',
    [
      '@babel/preset-react',
      {
        importSource: '@welldone-software/why-did-you-render',
        runtime: 'automatic',
        development: true,
      },
    ],
  ],
  ...
import './wdyr'
import { AppRegistry } from 'react-native'
import App from './App'
import { name as appName } from './app.json'

AppRegistry.registerComponent(appName, () => App)
import React from 'react'

if (__DEV__) {
  const whyDidYouRender = require('@welldone-software/why-did-you-render')
  whyDidYouRender(React, {
    trackAllPureComponents: true,
  })

  console.log('whyDidYouRender enabled')
}

@sergeylaptev
Copy link
Contributor

I’ve described the solution for react-native projects in this pull request #288

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

8 participants