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

cycle detected through attribute #102

Closed
realszopen opened this issue Apr 19, 2024 · 11 comments
Closed

cycle detected through attribute #102

realszopen opened this issue Apr 19, 2024 · 11 comments
Labels

Comments

@realszopen
Copy link

This happens on current release of iPhoneNumberField when trying to edit empty text field with placeholder text in place. It does not happen when editing text field with text already in place.

=== AttributeGraph: cycle detected through attribute 842776 ===
=== AttributeGraph: cycle detected through attribute 580900 ===
=== AttributeGraph: cycle detected through attribute 580900 ===
=== AttributeGraph: cycle detected through attribute 580900 ===
=== AttributeGraph: cycle detected through attribute 580900 ===

@keenan-chiasson
Copy link

Experiencing this as well. Any updates?

@tonybruess
Copy link

tonybruess commented May 3, 2024

Looks like a fix was merged but a release was never published: #76

@realszopen
Copy link
Author

That's actually interesting. I used to experience this cycle graph in more situations. Now the number of cases seems actually smaller. Nevertheless, I have downgraded iPhoneNumberField in production app and using old version while waiting for release with fix.

@freywaid
Copy link

I would like to use this package except for these cycle errors. Can we merge the PR that fixes this?

@MojtabaHs
Copy link
Owner

MojtabaHs commented May 13, 2024

@realszopen
@tonybruess
@keenan-chiasson

Please:

  • Fork the project
  • Add an example view into the demo project - (Think of it as a test case)
  • Name the file as Case-102.swift
  • PR a draft request so I can investigate the root cause, contribute, and merge it back to the package.

This way the final merged code will have a manual test file and your name as a contributer on it 🙌🏻

@MojtabaHs
Copy link
Owner

MojtabaHs commented May 13, 2024

I would like to use this package except for these cycle errors. Can we merge the PR that fixes this?

@freywaid Since I can't reproduce the original issue, you may want to directly use the PR (temporary) in your project until some one is able to make a Test-Case-PR as I described above.

@realszopen
Copy link
Author

Done PR #103

@MojtabaHs
Copy link
Owner

MojtabaHs commented May 18, 2024

I can't reproduce the issue.
What I've done:

  • Tap on the empty field - (nothing strange)
  • Tap on the numbers - (nothing strange)
  • Tap on the clear button until it is empty - (nothing strange)
  • Tap on the clear button while it is already empty - (nothing strange)
  • Repeat with adding *, # and + signs - (nothing strange)
  • Tap on the flag - (nothing strange)
  • Select different countries - (nothing strange)

I have done the above steps rotating (like starting from the 4th step to the end and then from step 1 to the 4th) but again, no issues.

Please specify the exact steps to reproduce the issue on the Demo app so we will be on the same page.

ps: you can use the following to make your case run on the demo app as your previewed:

struct MultiplatformDemoApp: App {
    @State var number: String = ""

    var body: some Scene {
        WindowGroup {
            ContentView()
            if #available(iOS 15.0, *) {
                iPhoneNumberFieldTestView(placeholderText: "GOTACHA", mainText: $number)
            }
        }
    }
}

Also, don't forget to pull the necessary changes I've made to your PR first!

@freywaid
Copy link

freywaid commented May 19, 2024 via email

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 19, 2024
Copy link

github-actions bot commented Jul 4, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants