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

react4j.dom.BatchingTaskInterceptor Maven / Gradle / Ivy

The 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