Skip to content

Documentation for serialising browser storage is incorrect #5063

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

Open
wardy3 opened this issue Mar 31, 2025 · 1 comment
Open

Documentation for serialising browser storage is incorrect #5063

wardy3 opened this issue Mar 31, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement Anything you want improved

Comments

@wardy3
Copy link

wardy3 commented Mar 31, 2025

Documentation error

It appears the doco at https://reflex.dev/docs/api-reference/browser-storage/#serialization-strategies incorrectly refers to built-in dataclasses, where I believe the methods referenced are Pydantic dataclasses

When running the example, you get

  File "xxx/.venv/lib/python3.13/site-packages/reflex/state.py", line 1817, in _process_event
    events = fn(**payload)
  File "xxx/reflex_doco/reflex_doco/reflex_doco.py", line 26, in open_settings
    self.data = AppSettings.parse_raw(self.data_raw)
                ^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'AppSettings' has no attribute 'parse_raw'
@wardy3 wardy3 added the enhancement Anything you want improved label Mar 31, 2025
Copy link

linear bot commented Mar 31, 2025

@Lendemor Lendemor added the documentation Improvements or additions to documentation label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement Anything you want improved
Projects
None yet
Development

No branches or pull requests

2 participants