smartlook / smartlook-client

Official Smartlook client for easy frontend integration.
https://smartlook.com
MIT License
28 stars 9 forks source link

not able to add array values to global properties #38

Closed mborisov-grubhub closed 1 year ago

mborisov-grubhub commented 1 year ago

As far as I can see after some testing, it's not possible to use arrays in call to 'properties'. For example: Smartlook.properties({testArray: [1,2,3]})

So do I just miss something or is it really possible to use only string | number | boolean as properties values?

I'm using smartlook-client package (v 8.2.0) in react based project.

amertak commented 1 year ago

Hi @mborisov-grubhub

You are right as only primitive values can be used for identify and properties API calls.

Record<string, string | number | boolean>