# 기본 상태 관리 (Flutter) > setState, InheritedWidget, Provider 기초, 범위가 지정된 상태, 상태 끌어올리기 - 22 면접 질문 - Mid-Level - [면접 질문: Flutter](https://sharpskill.dev/ko/technologies/flutter/interview-questions.md) ## 1. StatefulWidget에서 setState의 주요 목적은 무엇입니까? **답변** setState는 위젯의 내부 상태가 변경되어 위젯을 다시 빌드해야 한다는 것을 Flutter 프레임워크에 알립니다. setState가 호출되면 Flutter는 새로운 상태 값을 반영하기 위해 위젯의 리빌드를 예약합니다. setState를 호출하지 않으면 상태 변수의 변경이 시각적 업데이트를 트리거하지 않습니다. ## 2. setState를 호출하지 않고 상태 변수를 수정하면 어떻게 됩니까? **답변** setState를 호출하지 않으면 Flutter는 변경 사항을 통지받지 못하고 리빌드를 예약하지 않습니다. 변수는 메모리에서 수정되지만 다른 원인으로 트리거되는 다음 리빌드까지 사용자 인터페이스는 변경되지 않습니다. 이는 초보자가 흔히 하는 실수로 식별하기 어려운 버그로 이어집니다. ## 3. setState를 호출할 때 수정은 어떤 순서로 이루어져야 합니까? **답변** 상태 수정은 setState 콜백 내부에서 이루어져야 합니다. 이를 통해 Flutter는 변경 사항을 추적하고 리빌드를 동기적으로 예약할 수 있습니다. 앞이나 뒤에서 수정해도 기술적으로는 작동하지만, 코드 명확성과 변경 추적성을 위해 내부에서 수정하는 것이 관례입니다. ## 19개 추가 질문 이용 가능 - initState에서 setState를 호출하는 것이 권장되지 않는 이유는 무엇입니까? - Flutter에서 InheritedWidget의 주요 역할은 무엇입니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 Flutter 면접 주제 - [Dart 기초](https://sharpskill.dev/ko/technologies/flutter/interview-questions/dart-basics.md): 25개 질문, Junior - [Dart 언어 핵심](https://sharpskill.dev/ko/technologies/flutter/interview-questions/dart-language-essentials.md): 15개 질문, Junior - [Flutter 기초](https://sharpskill.dev/ko/technologies/flutter/interview-questions/flutter-fundamentals.md): 18개 질문, Junior - [위젯 생명주기](https://sharpskill.dev/ko/technologies/flutter/interview-questions/widget-lifecycle.md): 20개 질문, Junior - [로컬 스토리지](https://sharpskill.dev/ko/technologies/flutter/interview-questions/local-storage.md): 20개 질문, Junior - [애플리케이션 생명주기](https://sharpskill.dev/ko/technologies/flutter/interview-questions/app-lifecycle.md): 20개 질문, Junior - [Layouts & Constraints](https://sharpskill.dev/ko/technologies/flutter/interview-questions/layouts-constraints.md): 24개 질문, Mid-Level - [ListView & GridView](https://sharpskill.dev/ko/technologies/flutter/interview-questions/listview-gridview.md): 25개 질문, Mid-Level - [내비게이션 및 라우팅](https://sharpskill.dev/ko/technologies/flutter/interview-questions/navigation-routing.md): 22개 질문, Mid-Level - [Provider 패턴](https://sharpskill.dev/ko/technologies/flutter/interview-questions/provider-pattern.md): 18개 질문, Mid-Level - [Networking & HTTP](https://sharpskill.dev/ko/technologies/flutter/interview-questions/networking-http.md): 20개 질문, Mid-Level - [JSON 직렬화](https://sharpskill.dev/ko/technologies/flutter/interview-questions/json-serialization.md): 20개 질문, Mid-Level - [로컬 데이터베이스](https://sharpskill.dev/ko/technologies/flutter/interview-questions/local-database.md): 22개 질문, Mid-Level - [폼과 유효성 검사](https://sharpskill.dev/ko/technologies/flutter/interview-questions/forms-validation.md): 20개 질문, Mid-Level - [애니메이션](https://sharpskill.dev/ko/technologies/flutter/interview-questions/animations.md): 20개 질문, Mid-Level - [Firebase 통합](https://sharpskill.dev/ko/technologies/flutter/interview-questions/firebase-integration.md): 18개 질문, Mid-Level - [유닛 테스트](https://sharpskill.dev/ko/technologies/flutter/interview-questions/unit-testing.md): 20개 질문, Mid-Level - [위젯 테스트](https://sharpskill.dev/ko/technologies/flutter/interview-questions/widget-testing.md): 18개 질문, Mid-Level - [빌드 및 배포](https://sharpskill.dev/ko/technologies/flutter/interview-questions/build-deployment.md): 16개 질문, Mid-Level - [패키지 관리](https://sharpskill.dev/ko/technologies/flutter/interview-questions/package-management.md): 16개 질문, Mid-Level - [메모리 및 성능](https://sharpskill.dev/ko/technologies/flutter/interview-questions/memory-performance.md): 22개 질문, Senior - [Streams & RxDart](https://sharpskill.dev/ko/technologies/flutter/interview-questions/streams-rxdart.md): 24개 질문, Senior - [고급 State Management](https://sharpskill.dev/ko/technologies/flutter/interview-questions/advanced-state-management.md): 26개 질문, Senior - [Flutter Design Patterns](https://sharpskill.dev/ko/technologies/flutter/interview-questions/flutter-design-patterns.md): 24개 질문, Senior - [성능 최적화](https://sharpskill.dev/ko/technologies/flutter/interview-questions/performance-optimization.md): 26개 질문, Senior - [Platform Channels](https://sharpskill.dev/ko/technologies/flutter/interview-questions/platform-channels.md): 20개 질문, Senior - [Custom Painting](https://sharpskill.dev/ko/technologies/flutter/interview-questions/custom-painting.md): 22개 질문, Senior - [Flutter 애플리케이션 아키텍처](https://sharpskill.dev/ko/technologies/flutter/interview-questions/flutter-app-architecture.md): 22개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/flutter/interview-questions/state-management-basics