Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 1.89 KB

ROADMAP.md

File metadata and controls

64 lines (50 loc) · 1.89 KB

Roadmap

Riverpod

Examples

  • synchronizing two lists with the same editable content (two todo lists, editing a todo in one list edits it in another list too)

Marvel

  • Write tests for everything
  • publish it on the web
  • handle errors (out of calls/day, no configurations)
  • Added to riverpod.dev

Introduction screen

  • Insert a nested UncontrollerProviderScope
  • Pass it a ProviderContainer that overrides the repositories & co to use a specific data-set

riverpod.dev

  • Filtering rebuilds
  • pre-fetch a provider
  • Testing (without flutter, mocking FutureProvider)
  • How it works
  • The differences between hooks and not hooks
  • fundamentals
    • ProviderScope
  • FAQ
    • My Consumer behaves differently inside overlays/transition
    • How to prefetch data in the main
  • cookbooks:
    • migration from provider
    • list items + family, don't pass the id to the item and instead expose a "currentItem" provider
    • canceling http requests when leaving the screen
    • state hydration
    • configurations that change over time
  • DO/DON'T
    • import lints
    • DO create a provider for states you want to read multiple times

Linter:

  • Don't create providers inside build (rrousselGit#144 (comment))
  • don't mutate other providers inside "create" (rrousselGit#144 (comment))
  • wrap with Consumer
  • No circular dependency
  • warn watch(autoDispose) in non-autoDispose provider
  • always_specify_name
  • name_match_variable
  • extract widget as class for rebuild optimization
  • warn if public classes inside /src are not used but not exported

Devtool:

  • entire app state for the root ProviderContainer
  • highlight state changes
  • Show the number of widgets that rebuilt in the same frame than the state change
  • editable state (through Freezed/copyWith/state_notifier)
  • time travel
  • lock further changes