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

build(deps): bump mobx-react from 8.0.0 to 9.0.0 #4990

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 12, 2023

Bumps mobx-react from 8.0.0 to 9.0.0.

Release notes

Sourced from mobx-react's releases.

mobx-react@9.0.0

Major Changes

Patch Changes

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 12, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch 7 times, most recently from 2c3a8f6 to b88fd56 Compare July 12, 2023 23:45
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 12, 2023

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/mobx-react-9.0.0 branch July 12, 2023 23:45
@eatyourgreens eatyourgreens restored the dependabot/npm_and_yarn/mobx-react-9.0.0 branch July 13, 2023 08:20
@eatyourgreens eatyourgreens reopened this Jul 13, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch from b88fd56 to 4cd1f60 Compare July 13, 2023 08:22
@eatyourgreens
Copy link
Contributor

Signing in or out on this branch doesn't update the user account details in the page header, which is why the tests are failing. If I sign out, my username (and the user account dropdown menu) still shows at the top of the page.

@eatyourgreens
Copy link
Contributor

It seems like observer isn't reacting to changes in MobXProviderContext. That has wider implications for our code, since that's how most of our components connect to the store.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch from 4cd1f60 to be4f6d4 Compare July 19, 2023 07:50
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/mobx-react-9.0.0 branch July 19, 2023 15:09
@eatyourgreens eatyourgreens restored the dependabot/npm_and_yarn/mobx-react-9.0.0 branch July 30, 2023 14:19
@eatyourgreens eatyourgreens reopened this Jul 30, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch from be4f6d4 to 81ccddc Compare July 30, 2023 14:21
@eatyourgreens
Copy link
Contributor

eatyourgreens commented Jul 30, 2023

This is needed to run NextJS in development mode with React 18 (#3887), because it fixes mobxjs/mobx#3669.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch 6 times, most recently from 645c3ba to f0bdd95 Compare July 31, 2023 22:02
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch 9 times, most recently from c53a933 to 542d900 Compare August 9, 2023 22:01
@goplayoutside3
Copy link
Contributor

In the release notes:
[BREAKING CHANGE] Class component's props/state/context are no longer observable.

Is the following buggy behavior due to AuthModalContainer being a class rather than functional component?

Signing in or out on this branch doesn't update the user account detail

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch from 542d900 to 5f69f41 Compare August 10, 2023 21:00
@eatyourgreens
Copy link
Contributor

eatyourgreens commented Aug 10, 2023

The errors are in ZooHeaderWrapperContainer. I think I rewrote that as a functional component.

Failing project app tests in ZooHeaderWrapperContainer.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch 3 times, most recently from e5c237e to 644a08c Compare August 11, 2023 07:15
@eatyourgreens
Copy link
Contributor

Here's a screen recording from my laptop. Sign out is broken and the classifier doesn't render properly.

Screen.Recording.2023-08-11.at.10.30.02.mov

@eatyourgreens
Copy link
Contributor

Here's the dev classifier on this branch. The subject viewer initialises, but then never reacts to changes in the subject loading state.

Screen.Recording.2023-08-11.at.11.46.50.mov

@eatyourgreens
Copy link
Contributor

To be fair, MobX React has always advised against using a global store for local component state, such as data loading state.

In general, we recommend to not resort to MobX observables for local component state too quickly, as this can theoretically lock you out of some features of React's Suspense mechanism. As a rule of thumb, use MobX observables when the state captures domain data that is shared among components (including children). Such as todo items, users, bookings, etc.

State that only captures UI state, like loading state, selections, etc, might be better served by the useState hook, since this will allow you to leverage React suspense features in the future.

https://mobx.js.org/react-integration.html#you-might-not-need-locally-observable-state

@eatyourgreens
Copy link
Contributor

eatyourgreens commented Aug 11, 2023

If I log the stored value of MobXProviderContext to the console, I can see that classifierStore.subjects.loadingState is set to 'success'. However, the observed SubjectViewer component sees that loading state as 'initialised'.

Screenshot of the dev classifier, with the dev console open to show the logged classifier store. The subject queue loading state is 'success' but the rendered subject viewer shows 'initialised'.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch 6 times, most recently from 844a53b to 49080d6 Compare August 11, 2023 16:45
Bumps [mobx-react](https://github.com/mobxjs/mobx) from 8.0.0 to 9.0.0.
- [Release notes](https://github.com/mobxjs/mobx/releases)
- [Commits](https://github.com/mobxjs/mobx/commits/mobx-react@9.0.0)

---
updated-dependencies:
- dependency-name: mobx-react
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mobx-react-9.0.0 branch from 49080d6 to 5e0b676 Compare August 11, 2023 19:40
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 29, 2023

Superseded by #5250.

@dependabot dependabot bot closed this Aug 29, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/mobx-react-9.0.0 branch August 29, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants