Pass localstore as dep and add init method