-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[issue] "e.observing is null" since last update of firefox #614
Comments
Can you please create a fiddle recreating this issue. On Oct 17, 2016 3:33 AM, "AoDev" [email protected] wrote:
|
I made one but I can't reproduce this issue with a simple test case. Right now we have seen that it fails in production while working in our staging. I am still investigating. Maybe the issue is on our end only finally. |
Found update related to selects in Firefox (from 47 to 48) |
I would expect all data objects to be untouched by the DOM, but to avoid Op ma 17 okt. 2016 om 16:59 schreef AoDev [email protected]:
|
Here is a codepen which is as similar as our original code as possible: About the code About the codepen Maybe by looking at the codepen and their changes you can see something. Especially these changes of theirs are "suspicious":
You can see all their changes in the link I've added in a previous comment. |
We were seeing a very similar issue in our app: javascript error with the message It was only reproducible on production environments (which use bundled/transpiled javascript from webpack and babel), so hard to pinpoint exactly where the error was getting thrown. The solution I found was to remove the |
Like @kcampbell I have decided to remove the observer capabilities for the components that holds the select. This has "solved" the issue. Just that we lose the mobx optimization with shouldComponentUpdate. The "bug" itself I could not investigate or find anything really useful. |
Closing the issue for now |
I ran into this too under similar conditions (an In Moving the I was able to repro with the following:
disclaimer: I work for Mozilla but not on the Firefox team. |
FYI, I was also having this issue the other day with FireFox. I updated mobx & mobx-react to the latest versions and it has resolved the issue thus far. |
@jmca Hi, just for any person reading that later, could you tell us which version was the latest when you updated? |
@AoDev Here's my upgrade path: |
@jmca Thanks, this solve the |
I had latest versions and still was happening. I had a component like this. @observer
class UndoButton extends React.Component {
onUndo = () => {
this.props.bulkUploadItem.undo()
}
render() {
return (
<button className="button warning small" onClick={this.onUndo}>
Undo
</button>
)
}
} I took |
@drewhamlett This happens only in Firefox, right? Do you have any publicly-available code that can reliably reproduce the issue? |
I can try to whip something up tonight possibly. |
Had a similar issue. Older version of Firefox worked fine, latest (51.0.1) would fail with observing is null error. Seems to be similar to what @drewhamlett showed above. Our problem was that we had a component with the import React, { Component } from 'react';
import { observer } from 'mobx-react';
@observer
export default class ContentFooter extends Component {
render() {
return (
<div className="footer" />
);
}
} Removed the "mobx": "^2.7.0" |
@mcav I came to the same conclusion - this is a bug in Firefox JS engine. Turning The problem is still present in FF 55. |
I've filed a bug on Bugzilla here (today) with my best description for what might be going on. It's unfortunate that we haven't found a nice small test case that doesn't require a viewer to dive into MobX internals. Hopefully someone who works on the JIT might know how to trigger it deterministically on a small test case. |
Thanks @mcav! |
Awesome investigation! Thanks @mcav
Op di 19 sep. 2017 om 07:43 schreef Matjaz Gregoric <
[email protected]>:
… Thanks @mcav <https://github.com/mcav>!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#614 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhJPmWJm-5lFBjJF1Dj2LFzG7mp7Wks5sj1R7gaJpZM4KYW-m>
.
|
if in your local modules, you rewrite the double assignments as
Does that remove the problem? That would be a simple work around for now |
@mweststrate That did not fix the problem for me, but moving the |
@mtyaka / @mcav Just moved that assignment down in the function body, could you verify whether that workaround fixes the issue in |
Probably fixed by work-around in 3.3.0 and further depends on the release of the linked issue in Firefox. Closing it here |
Hello, our app started to have an issue on Firefox with their last update:
e.observing is null
with
mobx: 2.5.2, mobx-react: 3.5.6,
(for example I had FF 47.8, I think, and it updated to 49.0.1)
Since then we have an issue related to a
<select />
which values are observables.When a value is selected, it throws
e.observing is null
.This bug was confirmed by various people, developers and customers.
The text was updated successfully, but these errors were encountered: