Comments (5)
I guess my solution was incorrect ๐ .
Thanks for the feedback though, if I managed to find another solution that suits your feedback, I'll make a PR again.
from genshin-schedule.
I think I found the bug.
I noticed that your useDueTasks
utility function does not actually search for the query that we typed in the search box. So, I modified your useDueTasks
code a bit and...
Works perfectly! What do you think? I can drop a PR if you wish!
from genshin-schedule.
That would be great!
from genshin-schedule.
Hey, I think I managed to find a solution according to your feedback.
It's actually pretty simple, it goes like the following:
Old one:
const dueTasks = useDueTasks(tasks);
New one:
const dueTasks = useDueTasks(tasks);
const filteredTasks = useFilteredTasks(dueTasks); // after getting due tasks, filter them according to the user's query.
// The next parts are just replacing 'dueTasks' with 'filteredTasks'
I believe the reason of why the search button never worked - is because we never called useFilteredTasks
in the first place. The reason the map worked fine is because we have called the useFilteredTasks
function in the taskDispatches
(TaskLayer
component).
All of the changes happen in the TaskListCard
.
What do you think? I tested in it my local machine and it works perfectly. Hope it doesn't incur any of negative side effects or bugs though!
from genshin-schedule.
That's what I was looking for :)
from genshin-schedule.
Related Issues (20)
- Merging of `sync` project into `web`
- Show timestamp of when resin and realm currency became full HOT 1
- Can I logon with github accounts๏ผ HOT 1
- Outdated map HOT 1
- Farming helper / counter HOT 9
- Support for custom timezones
- Show realm currency steps and sync with the resin estimator HOT 11
- i18n
- Multiple resin notifications and estimated time in notification messages
- Use `Accept-Languages` header to determine default language
- Marking tasks as done using the Discord bot
- Allow crossing off trounce domains for the week HOT 5
- Traveller is not available as a character
- Use `scrollRestoration` next.js flag
- +60 resin button for Transient/Fragile Resin HOT 5
- List of incorrect/missing database entries
- Sometimes Logout button refuses to work
- Missing Song of Broken Pines
- Resource respawn time algorithm needs to be updated
- 2.1 CHARACTERS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genshin-schedule.