Skip to content

Clean body and fix hash navigation

Compare
Choose a tag to compare
@maxence-charriere maxence-charriere released this 15 May 11:16
· 9 commits to v6 since this release
157b232

Hello,
I'm glad to release the version 6.5.0.

Clean body

go-app now provides the function CleanBody. This is to remove extra elements in the body that might be added by third-party libraries.

While building an app, I ran into a problem where Amazon advertisements where popping into the screen when navigating fast to other pages. The problem was that Amazon is loading a script to display their ads. When the loaded code does not find the ad container (when a component is dismounted), it inserts the ads directly in the body.

This is to prevent this kind of behavior from third-party libraries.

Bug Fixes

Some code has been refactored and hash navigation (eg. http://my.domain/hello#Input) now works properly.