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
[REF-1943] Backend variables should not be accessible to render #2559
Comments
@wassafshahzad your example code throws an exception: |
On the dev version ? |
I updated the example, I was working with his example on my local branch and it had some changes which prevented the above exception. Now the example should run |
You are right, your example renders a backend-var to the frontend, which should not be possible. Tested with |
For prosperity During compiling the component calls it respective create method and the children passed to it through State and the private var is availble in the dunder dict method , it just returns it as a string literal or any base python type. ###Solution,
|
PR is up and awaiting review |
PR seemed to have an issue #2681 |
@wassafshahzad I added some basic tests which fail against the problematic changes here: #2685 |
Thank you, I will fiz it tomorrow or later today |
Sorry, I will fix it later today |
Tabling this one for now. |
Description
Working on the issue #1154, we discovered that the backend variables are accessible to the frontend which they should not be.
###Steps to reproduce the behavior:
Run the following code
###Expected behavior
Backend vars should not be accessible to frontend
Specifics (please complete the following information):
Additional context
Linked PR #2540
REF-1943
The text was updated successfully, but these errors were encountered: