Skip to content

Fixing double-render in ParDiff

Athan Clark requested to merge pardiff-double-render-20210815 into master

This MR fixes a "double-render" bug #139 (closed) - essentially, when loading a shpadoinkle javascript web application with ParDiff as the backend, the stage function won't clear out <body> before binding. This is opposed to the Snabbdom backend, which does. Essentially, this MR just duplicates this behavior in Snabbdom to ParDiff.

This MR also achieves two more goals - in ParDiff, the setup' function creates a window.deleteProp function to use the delete keyword. This is obsolete, and now uses a foreign import javascript unsafe deleteProp. Also, this MR fixes #138 (closed) and inherits its MonadReader instance from its wrapped monad m.

Merge request reports