Skip to content

Commit ff2ff0e

Browse files
committed
chore: update README with new feature
1 parent 9e20092 commit ff2ff0e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ export default {
7979
// Override the default value (`q`) of query parameter name
8080
// Use a falsy value for RESTful query
8181
// (optional)
82-
queryParamName: 'search'
82+
queryParamName: 'search',
83+
84+
// Override the 'src' prop and rather use your own fetching function
85+
// Useful for authentication, custom headers, etc...
86+
// (optional)
87+
fetchFunction: function(input) {
88+
// Fetch the result here and return an array of items
89+
}
8390
}
8491
},
8592

0 commit comments

Comments
 (0)