-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
cannot log action info #2324
Comments
Seems to work OK with @danielduan what can I do to degrade the app to RN 0.45 locally so that I could reproduce this? |
In the CRNA example, change the They need to match: |
And replace |
Oh yeah! It might not matter though because its set up to look for the version default. |
I'm unable to reproduce on first attempt. Here's what I did: First, edit
Then:
Clicking on the button logs to the actions panel successfully? Let me know if I'm doing something wrong. |
Same here
when running on android emulator. Though works ok when trying to debug in Chrome. |
@Hypnosphi You might want to check if (Object.getOwnPropertyDescriptor(handler, 'name').configurable) in current engine here https://github.com/storybooks/storybook/blob/5cd3dde2ba3ec12a94a9439c1d3a5822dd01ccd4/addons/actions/src/preview.js#L28 And fallback to |
I’d prefer to figure out first, why it becomes non-configurable |
I'd say this is js engine implementation bug. |
I meet the same issue too. but when i react-native: 0.47.2 |
@Tarabyte Oh I see. I‘d prefer to keep the name as is rather than use the eval hack in those cases. Would you like to submit a PR? |
We could also try to make const handler = (() => (..._args) => {
const args = Array.from(_args).map(_format);
const channel = addons.getChannel();
const id = uuid();
channel.emit(EVENT_ID, {
id,
data: { name, args },
});
})(); |
Published in 3.2.17 |
storybook: v3.2.16
react-native: v0.45.1
error info: Attempting to change value of a readonly property
caused by this line: Object.defineProperty(handler, { value: {'name': fnName }});
The text was updated successfully, but these errors were encountered: