ilikerobots / django-vue-utilities

MIT License
11 stars 1 forks source link

vue_provide no longer works with inject() #1

Open rayonx opened 3 months ago

rayonx commented 3 months ago

{# 'provide" strings which can 'injected' throughout the Vue app, including from within a pinia store #} {% url 'home' as homeUrl %} {% vue_provide 'homeUrl' homeUrl %}

vue_provide tag here works as a template tag but it does not work together with pinia v2.1.x, inject() will not look for window.vueProvided and will always end up with undefined value if we follow the above instruction.