Skip to content

TypeError: Converting circular structure to JSON #89

Open
@RZR666

Description

@RZR666

Hi,

Has anyone had an luck restoring search parameters from storage?

// Restore
$scope.savedSearch = LocalDataService.GetSearchCriteria();

// Save
localStorageService.set('search', JSON.stringify(data));

// Get
return JSON.parse(localStorageService.get('search'));

TypeError: Converting circular structure to JSON

console logging returns the same data though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions