Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected value of session$clientData$url_search #5469

Open
ocelhay opened this issue Nov 22, 2024 · 2 comments
Open

Unexpected value of session$clientData$url_search #5469

ocelhay opened this issue Nov 22, 2024 · 2 comments
Labels
area: viewer Issues related to Viewer category. enhancement New feature or request support
Milestone

Comments

@ocelhay
Copy link

ocelhay commented Nov 22, 2024

System details:

Positron and OS details:

Positron Version: 2024.11.0 (Universal) build 140
Code - OSS Version: 1.93.0
Commit: e0d844b
Date: 2024-10-31T14:24:19.540Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

Interpreter details:

R 4.3.2

Describe the issue:

Shiny app session$clientData$url_search value in Positron differs from the expected value ("") in RStudio

session$clientData$url_search
[1] "?_positronRender%3D3"

Steps to reproduce the issue:

  1. run a shiny app from within Positron
  2. add in server.R (print(session$clientData$url_search))
@juliasilge
Copy link
Contributor

For folks on our team less familiar with Shiny, here is some context on the session object:
https://shiny.posit.co/r/articles/build/client-data/

@ocelhay can you share how you use the value "" in your development process?

@juliasilge juliasilge added the info needed Waiting on information label Nov 25, 2024
@ocelhay
Copy link
Author

ocelhay commented Nov 27, 2024

@ocelhay can you share how you use the value "" in your development process?

Within the app, I use the statement session$clientData$url_search == "" to test if there is any session parameter. No session parameter will branch logic with the app going into "demo mode". When running my shiny app locally, typically, it has to go into "demo mode".
It's not critical as I can as well test for the presence of a specific parameter.
I just wanted to report that this logic that was working in RStudio is failing in Positron.

@juliasilge juliasilge added enhancement New feature or request area: viewer Issues related to Viewer category. support and removed info needed Waiting on information labels Nov 27, 2024
@juliasilge juliasilge added this to the Future milestone Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: viewer Issues related to Viewer category. enhancement New feature or request support
Projects
None yet
Development

No branches or pull requests

2 participants