LocalStorage GetKeys error since update to v1.5.9

0
0

Hi
Some issues since update to 1.5.9
Exception:
Cant convert from ‘object[]’ to ‘string[]’

Sample code:

Application.Browser.LocalStorage.GetKeys(keys =>
{
// fails too with empty code block here, but i have code to validate that some keys exists
});

Try with empty localstorage

Fails too with:
var keys = await Application.Browser.LocalStorage.GetKeysAsync();

Thanks in advance!

  • You must to post comments
0
0

Hi Sergio,

You should use what you wrote previously

var keys = await Application.Browser.LocalStorage.GetKeysAsync();

  • You must to post comments
0
0

It’s ok now.
But a new question, next code is supported (because it doesn’t work, try with empty localstorage)?

var task = Application.Browser.LocalStorage.GetKeysAsync();
var res = task.Result;

Thanks in advance!

  • Luca (ITG)
    That’s the wrong usage of async methods.
  • You must to post comments
0
0

Hi Sergio,

WJ-9134 is fixed in Wisej build 1.5.12.

Best regards
Frank

  • You must to post comments
0
0

Hi,

Can reproduce. Logged as WJ-9134.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.