You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I worked it out after printing PersonFragment and noticing that the print function gets rid of those spaces.
This is a bug because the fragment equality algorithm is formatting the code itself when parsing the fragment for the first time, but not formatting the code again when comparing with what it's got stored.
The problem
Given a fragment that looks like this:
When I use this fragment in two places in my app I get this warning on the console:
The cause
After some investigation I found out that the issue is being caused by code formatting.
If I change this line
to this, without some of the spaces
the warning goes away!
I worked it out after printing
PersonFragment
and noticing that the print function gets rid of those spaces.This is a bug because the fragment equality algorithm is formatting the code itself when parsing the fragment for the first time, but not formatting the code again when comparing with what it's got stored.
This doesn't work also, which is extra annoying:
The text was updated successfully, but these errors were encountered: