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

Profile dialog: Add staging profile #1146

Open
AlexNi245 opened this issue Aug 14, 2024 · 0 comments
Open

Profile dialog: Add staging profile #1146

AlexNi245 opened this issue Aug 14, 2024 · 0 comments
Assignees

Comments

@AlexNi245
Copy link
Collaborator

Profile changes must be staged locally on the client end before they can be published onchain. For that reason, the profile has to be managed locally to keep track of changes.

  1. Add useDm3UserProfile hook + Context Provider
  2. within that hook. Add an initialized function. This function fetches the profile from the highest supported profile location. to get that location use useTopLevelAlias.resolveAliasToTld. The name returned by this function can be used with getUserProfile
  3. Add functions to edit the profile. addNode, deleteNode, changeOrder
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

No branches or pull requests

2 participants