You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "nausharipov (via GitHub)" <gi...@apache.org> on 2023/02/03 09:30:32 UTC

[GitHub] [beam] nausharipov commented on a diff in pull request #25298: [ToB][Frontend] Save user code

nausharipov commented on code in PR #25298:
URL: https://github.com/apache/beam/pull/25298#discussion_r1095565279


##########
learning/tour-of-beam/frontend/lib/pages/tour/state.dart:
##########
@@ -136,11 +142,123 @@ class TourNotifier extends ChangeNotifier with PageStateMixin<void> {
     if (content == null) {
       return;
     }
-    final taskSnippetId = content.taskSnippetId;
-    await _setPlaygroundSnippet(taskSnippetId);
-    _isShowingSolution = false;
+
+    await _updateHasSavedSnippet();
+    _setSnippetTypeSavedIfCan();
+    await _setCurrentSnippetFromType();
+    notifyListeners();
+  }
+
+  // Save user code.

Review Comment:
   Save user code part will be extracted into a separate class in the [Save user code for anonymous user](https://github.com/apache/beam/issues/25283) task.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org