79226263

Date: 2024-11-26 10:30:07
Score: 1.5
Natty:
Report link

Ensure you are calling any fragment lifecycle-dependent component outside the fragment lifecycle. for instance, declaring a var with something from the viewmodel.

var anything = viewmodel.something.

make all such calls within the lifecycle methods of the fragment, of course, it is best you do them in the OnViewCreated method

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Omolere Ayomide