Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

Fix Initial useUrlParams bug #153

Closed JRJurman closed 3 years ago

JRJurman commented 3 years ago

Summary

There is a bug in the existing version of Tram-One, where on initial load, the url parameters live in a params field. This is only true for the first render, and then afterwards works as expected (with keys at the top level).

This PR fixes the issue, and adds a regression test to verify the behavior acts as expected.

Checklist