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

Move Array#fill to "write then read" methods so the template correctly updates #408

Merged
merged 3 commits into from Sep 22, 2023

Conversation

locks
Copy link
Contributor

@locks locks commented Sep 20, 2023

I was using Array#fill to showcase how to use TrackedArray and the template was not updating accordingly.

@locks locks marked this pull request as ready for review September 20, 2023 02:16
@acorncom
Copy link

@locks might be worth adding a simple test so we don’t regress in the future?

@SergeAstapov SergeAstapov added the enhancement New feature or request label Sep 20, 2023
@@ -49,7 +49,7 @@ const ARRAY_SETTER_METHODS = [
// vice versa).
expectTypeOf<TrackedArray<unknown>>().toMatchTypeOf<Array<unknown>>();

module('TrackedArray', function (hooks) {
module.only('TrackedArray', function (hooks) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@locks assume we probably need this taken out too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 apologies

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@locks you're fine, just figured I could flag it for you before someone who can merge comes back 😉

@ef4
Copy link
Contributor

ef4 commented Sep 22, 2023

The test failures on newer ember versions are because we need some blueprint updates. Working on that here: #409

@ef4
Copy link
Contributor

ef4 commented Sep 22, 2023

If you rebase on master now tests should be passing.

@SergeAstapov SergeAstapov merged commit 15c8ced into tracked-tools:master Sep 22, 2023
18 checks passed
@SergeAstapov
Copy link
Collaborator

@locks Thank you! This is now published as v3.3.0. cc @ef4

@locks
Copy link
Contributor Author

locks commented Sep 22, 2023

Thank you for the quick turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants