From f43959b1c6857128ffbca1834116d67287c32659 Mon Sep 17 00:00:00 2001 From: RyosukeCla Date: Thu, 3 Oct 2024 14:41:50 +0900 Subject: [PATCH] fix --- ios/Nativebrik/Nativebrik/component/page.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/Nativebrik/Nativebrik/component/page.swift b/ios/Nativebrik/Nativebrik/component/page.swift index b34ff21..552a0bf 100644 --- a/ios/Nativebrik/Nativebrik/component/page.swift +++ b/ios/Nativebrik/Nativebrik/component/page.swift @@ -187,10 +187,10 @@ class PageView: UIView { // when it has http request, render loading view, and then self.loading = true self.renderView() - + Task { let result = await Task.detached { - let variable = await self.container.createVariableForTemplate(data: nil, properties: self.props) + let variable = self.container.createVariableForTemplate(data: nil, properties: self.props) return await self.container.sendHttpRequest(req: httpRequest, assertion: nil, variable: variable) }.value await MainActor.run { [weak self] in