From 9fa80eeabbb609f3aa49a3f7fd292fe3108808f2 Mon Sep 17 00:00:00 2001 From: Carlos Moises Arevalo <42924254+hortigado@users.noreply.github.com> Date: Wed, 29 Apr 2026 21:44:03 -0500 Subject: [PATCH] add variable autoStartQueue in function initialize() --- .../lib/src/offline_first_with_rest_repository.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart b/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart index f6c370ee..ce028200 100644 --- a/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart +++ b/packages/brick_offline_first_with_rest/lib/src/offline_first_with_rest_repository.dart @@ -151,11 +151,11 @@ abstract class OfflineFirstWithRestRepository initialize() async { + Future initialize({bool autoStartQueue = true}) async { await super.initialize(); // Start queue processing - offlineRequestQueue.start(); + if (autoStartQueue) offlineRequestQueue.start(); } @override