Magento 2.4.5 customer-data.js not initiating in Custom theme js file
There is a issue 2.4.5 with cookies and storage dependency. here is the patch need to apply. https://github.com/magento/magento2/issues/35913 this solves my problem.
REF: https://magento.stackexchange.com/a/366304/31830