mirror of
https://github.com/foss42/apidash.git
synced 2025-09-17 05:35:40 +08:00
selectedRequestModelProvider
This commit is contained in:
@ -9,7 +9,7 @@ import 'package:http/http.dart' as http;
|
||||
|
||||
final activeIdStateProvider = StateProvider<String?>((ref) => null);
|
||||
|
||||
final activeRequestModelProvider = StateProvider<RequestModel?>((ref) {
|
||||
final selectedRequestModelProvider = StateProvider<RequestModel?>((ref) {
|
||||
final activeId = ref.watch(activeIdStateProvider);
|
||||
final collection = ref.watch(collectionStateNotifierProvider);
|
||||
if (activeId == null || collection == null) {
|
||||
|
Reference in New Issue
Block a user