data-pjax-disable only works when =""
Closed this issue · 1 comments
data-pjax-disable does nothing only if it is defined empty: data-pjax-disable=""
Uncaught (in promise) TypeError: state is null
get http://localhost:3000/package/vendor/brixtol/pjax.esm.js:1226
__awaiter http://localhost:3000/package/vendor/brixtol/pjax.esm.js:969
__awaiter http://localhost:3000/package/vendor/brixtol/pjax.esm.js:965
get http://localhost:3000/package/vendor/brixtol/pjax.esm.js:1225
popstate http://localhost:3000/package/vendor/brixtol/pjax.esm.js:1919
__awaiter http://localhost:3000/package/vendor/brixtol/pjax.esm.js:969
__awaiter http://localhost:3000/package/vendor/brixtol/pjax.esm.js:965
popstate http://localhost:3000/package/vendor/brixtol/pjax.esm.js:1912
listener http://localhost:3000/package/vendor/brixtol/pjax.esm.js:1931
call http://localhost:3000/package/vendor/brixtol/pjax.esm.js:107
call http://localhost:3000/package/vendor/brixtol/pjax.esm.js:107
w http://localhost:3000/package/vendor/brixtol/pjax.esm.js:109
1 http://localhost:3000/package/vendor/brixtol/pjax.esm.js:110
Hey @graphis
So this project is still very much in its infinite stages and official release is on the way. I have pushed version 0.3.0-beta.1 that cleans up a couple of errors. Try updating to the latest version and retry. You should annotate href
links with data-pjax-disable
attributes. How are your targets setup? If you are able to send me a code snippet, I will have a look.