Integrate State with LocalContext