riverpod icon indicating copy to clipboard operation
riverpod copied to clipboard

A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.

Results 227 riverpod issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Creating this issue as suggested in [discord](https://discord.com/channels/765557403865186374/765557404766830614/1219206477290405898) I got this error: `Providers are not allowed to modify other providers during their initialization` while updating notifier's state inside...

bug
needs triage

## Related Issues fixes #1344 fixes #1207 ## Checklist Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). - [x]...

Related to https://github.com/rrousselGit/riverpod/issues/2645 Currently, Providers are paused when the app is in the background. This is usually the desired behavior. But when using `ref.listen(provider)`, we likely should keep invoking listeners...

enhancement

Related to https://github.com/rrousselGit/riverpod/issues/2699 `ref` is built to be composable. It's a shame that the linter doesn't understand this composition yet. We should find a solution to that problem, such that...

enhancement
linter

Bad: ```dart @riverpod class Example extends _$Example { List build() => []; void addItem(Item item) { state.add(item); // Mutation but no notifyListeners() // works with variants, like `state.value = 42`...

enhancement
linter

**Good** ```dart Widget build(ctx, ref) { ref.watch(provider); ref.listen(provider, ...); return Button( onPressed: () => ref.read(provider), ); } ``` **Bad**: ```dart void initState() { ref.listen(provider, ...); // use listenManual instead }...

enhancement
linter

## Problem Currently, when using `select` in combination with collections, it's common to want to write something like `select((list) => list[offset])`. But that will throw if some items are deleted...

enhancement

In case a Notifier may want to use `ref.onDispose` only while a method is executing, we would want to remove the `onDispose` listener when the method ends. Otherwise we would...

enhancement

**Is your feature request related to a problem? Please describe.** The flutter framework gives a warning when using the buildcontext async. `use_build_context_synchronously`. It would be nice to have something similar...

enhancement
linter

This is a meta issue for the rework of the homepage specifically Related to https://github.com/rrousselGit/riverpod/issues/2609 Some good homepage examples to take inspiration from: - https://www.framer.com/ - https://tanstack.com/query/v3/ - https://trpc.io/ -...

documentation-rework