Skip to content

Commit 06d8f1a

Browse files
committed
When making scope, always have calling session be the parent
1 parent 2078746 commit 06d8f1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shiny/session/_session.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,9 @@ def is_stub_session(self) -> bool:
12331233
async def close(self, code: int = 1001) -> None:
12341234
await self._parent.close(code)
12351235

1236-
def make_scope(self, id: str) -> Session:
1237-
return self._parent.make_scope(self.ns(id))
1236+
def make_scope(self, id: Id) -> Session:
1237+
ns = self.ns(id)
1238+
return SessionProxy(parent=self, ns=ns)
12381239

12391240
def root_scope(self) -> Session:
12401241
res = self

0 commit comments

Comments
 (0)