Skip to content

Conditional for rendering #356

Description

@visj

Hey Ryan!

I've resumed my work on researching efficient rendering strategies for conditional paths. I tried to create a benchmark between Solid and Ivi looking at conditionals inside map. Below is an example code:

<Show when={state.done === false}>
  <For each={array}>
    {x => {
      return <For each={array}>
        {y => {
	  if (x > y) {
	    return <div>Ok</div>
	  }
	  return null;
        }}
      </For>
    }}
  </For>
</Show>

How did you approach this? Basically, if you have a map -> condition -> map -> condition situation, do you render it inside out or outside in?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions