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

🚀🦍 Add Local Storage Handling to SDK #64

Merged
merged 11 commits into from
Oct 21, 2024
Merged

🚀🦍 Add Local Storage Handling to SDK #64

merged 11 commits into from
Oct 21, 2024

Conversation

mohamedmamdouh22
Copy link
Collaborator

  • Added a save_local_storage method to store local storage data from the browser or use provided data.
  • Automatically updates existing local storage keys with new values.
  • Notifies observers of the saved local storage changes.

Copy link

linear bot commented Sep 15, 2024

@mohamedmamdouh22 mohamedmamdouh22 changed the title 🚀 Add Local Storage Handling to SDK 🚀🦍 Add Local Storage Handling to SDK Sep 15, 2024
@mohamedmamdouh22 mohamedmamdouh22 marked this pull request as ready for review September 15, 2024 02:47
@@ -142,3 +161,7 @@ def files(self) -> List[Tuple[str, bytes]]:
@property
def cookies(self) -> List[Cookie]:
return self._cookies

@property
def local_storage(self) -> List[LocalStorage]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small list

@@ -96,11 +97,12 @@ def __init__(
self._context = context or {}
self._validator = (
PydanticSchemaParser(schema)
if (schema is not None and schema != {})
if (schema is not None and len(schema.keys()) > 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if schema

@asim-shrestha asim-shrestha merged commit 90410f2 into main Oct 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants