File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -525,8 +525,9 @@ def data_view_rows(self) -> tuple[int, ...]:
525525 The row numbers of the data frame that are currently being viewed in the browser
526526 after sorting and filtering has been applied.
527527 """
528- id_data_view_rows = f"{ self .output_id } _data_view_rows"
529- input_data_view_rows = self ._get_session ().input [id_data_view_rows ]()
528+ input_data_view_rows = self ._get_session ().input [
529+ f"{ self .output_id } _data_view_rows"
530+ ]()
530531 return tuple (input_data_view_rows )
531532
532533 # @reactive_calc_method
@@ -1015,11 +1016,12 @@ async def render(self) -> JsonifiableDict | None:
10151016 async def _send_message_to_browser (self , handler : str , obj : dict [str , Any ]):
10161017
10171018 session = self ._get_session ()
1018- id = session .ns (self .output_id )
10191019 await session .send_custom_message (
10201020 "shinyDataFrameMessage" ,
10211021 {
1022- "id" : id ,
1022+ # Custom message handlers are never namespaced for modules.
1023+ # Must provide a unique name to avoid conflicts between modules.
1024+ "id" : session .ns (self .output_id ),
10231025 "handler" : handler ,
10241026 "obj" : obj ,
10251027 },
You can’t perform that action at this time.
0 commit comments