Skip to content

Commit 456d54a

Browse files
author
Johan Brichau
committed
set turbo-prefetch to false per default for Seaside since callbacks modify state server-side and should not be prefetched
1 parent 02a2236 commit 456d54a

File tree

4 files changed

+16
-2
lines changed
  • repository
    • Seaside-Core.package/WAMetaElement.class/instance
    • Seaside-HotwireTurbo-Core.package/WATurboRenderPhaseContinuation.class/instance
    • Seaside-HotwireTurbo-Examples.package

4 files changed

+16
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
attributes
2+
turboPrefetch: aString
3+
"Prefetching links is enabled by default since Turbo v8,
4+
but you can disable it by adding this meta tag to your page with value false."
5+
6+
self name: 'turbo-prefetch'.
7+
self content: aString
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
updating
2+
updateRoot: aRoot
3+
4+
super updateRoot: aRoot.
5+
aRoot meta turboPrefetch: 'false'

repository/Seaside-HotwireTurbo-Examples.package/WATurboMultiCounter.class/class/register.st

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ register
33

44
(WAAdmin register: self asApplicationAt: '/examples/turbo/multicounter')
55
addLibrary: JQDevelopmentLibrary;
6-
preferenceAt: #actionPhaseContinuationClass put: WATurboCallbackProcessingActionContinuation
6+
preferenceAt: #actionPhaseContinuationClass put: WATurboCallbackProcessingActionContinuation;
7+
preferenceAt: #renderPhaseContinuationClass put: WATurboRenderPhaseContinuation

repository/Seaside-HotwireTurbo-Examples.package/WATurboTodo.class/class/register.st

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ register
44
(WAAdmin register: self asApplicationAt: '/examples/turbo/todo')
55
exceptionHandler: WADebugErrorHandler;
66
addLibrary: WAExamplesLibrary;
7-
preferenceAt: #actionPhaseContinuationClass put: WATurboCallbackProcessingActionContinuation
7+
preferenceAt: #actionPhaseContinuationClass put: WATurboCallbackProcessingActionContinuation;
8+
preferenceAt: #renderPhaseContinuationClass put: WATurboRenderPhaseContinuation

0 commit comments

Comments
 (0)