Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Oct 3, 2024
1 parent 5e7f8f0 commit f43959b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Nativebrik/Nativebrik/component/page.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f43959b

Please sign in to comment.