All Downloads are FREE. Search and download functionalities are using the official Maven repository.

react4j.dom.BatchingTaskInterceptor Maven / Gradle / Ivy

There is a newer version: 0.196
Show newest version
package react4j.dom;

import arez.SafeProcedure;
import arez.TaskInterceptor;
import javax.annotation.Nonnull;

/**
 * An arez TaskInterceptor that ensures that changes to reacts view are batched
 */
final class BatchingTaskInterceptor
  implements TaskInterceptor
{
  @Override
  public void executeTasks( @Nonnull final SafeProcedure executeAction )
  {
    ReactDOM.batchedUpdates( executeAction::call );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy