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

is it not working on net maui Hybrid? #235

Open
aphestark opened this issue Jan 7, 2024 · 1 comment
Open

is it not working on net maui Hybrid? #235

aphestark opened this issue Jan 7, 2024 · 1 comment
Labels
Question Question about this project Triage Issue needs to be triaged

Comments

@aphestark
Copy link

is it not working on net maui Hubrid?
i already tried, there is no error message
but set item not working

@aphestark aphestark added Question Question about this project Triage Issue needs to be triaged labels Jan 7, 2024
@aphestark aphestark changed the title is it not working on net maui Hubrid? is it not working on net maui Hybrid? Jan 7, 2024
@kapilaku
Copy link

kapilaku commented Feb 8, 2024

@code {
    private int currentCount = 0;
    protected override async Task OnInitializedAsync()
    {
        currentCount = await localStorage.GetItemAsync<int>("counter");
    }
    private async void IncrementCount()
    {
        currentCount++;
        await localStorage.SetItemAsync("counter", currentCount);
    }
}

I think it just works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Question about this project Triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants